2022-02-14 16:13:54 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Add should fail when passing incorrect email_type query parameter 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"errors": Array [
|
|
|
|
Object {
|
|
|
|
"code": null,
|
|
|
|
"context": "Validation (AllowedValues) failed for email_type",
|
|
|
|
"details": null,
|
|
|
|
"help": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
"message": "Validation error, cannot save member.",
|
|
|
|
"property": null,
|
|
|
|
"type": "ValidationError",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Add should fail when passing incorrect email_type query parameter 1: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "249",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Add should fail when passing incorrect email_type query parameter 2: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"errors": Array [
|
|
|
|
Object {
|
|
|
|
"code": null,
|
|
|
|
"context": "Validation (AllowedValues) failed for email_type",
|
|
|
|
"details": null,
|
|
|
|
"help": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
"message": "Validation error, cannot save member.",
|
|
|
|
"property": null,
|
|
|
|
"type": "ValidationError",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Add should fail when passing incorrect email_type query parameter 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "249",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can add 1: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "memberTestAdd@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "test",
|
|
|
|
"note": "test note",
|
|
|
|
"products": Array [],
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": false,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can add 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "608",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
2022-02-17 17:56:16 +03:00
|
|
|
"location": StringMatching /https\\?:\\\\/\\\\/\\.\\*\\?\\\\/members\\\\/\\[a-f0-9\\]\\{24\\}\\\\//,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can add a subcription 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"products": Array [],
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Array [
|
|
|
|
Object {
|
|
|
|
"cancel_at_period_end": false,
|
|
|
|
"cancellation_reason": null,
|
|
|
|
"current_period_end": Any<String>,
|
|
|
|
"customer": Object {
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"id": "cus_123",
|
|
|
|
"name": null,
|
|
|
|
},
|
|
|
|
"default_payment_card_last4": null,
|
|
|
|
"id": "sub_123",
|
|
|
|
"plan": Object {
|
|
|
|
"amount": 5000,
|
|
|
|
"currency": "USD",
|
|
|
|
"id": "173e16a1fffa7d232b398e4a9b08d266a456ae8f3d23e5f11cc608ced6730b12",
|
|
|
|
"interval": "month",
|
|
|
|
"nickname": "month",
|
|
|
|
},
|
|
|
|
"price": Object {
|
|
|
|
"amount": 5000,
|
|
|
|
"currency": "USD",
|
|
|
|
"id": "173e16a1fffa7d232b398e4a9b08d266a456ae8f3d23e5f11cc608ced6730b12",
|
|
|
|
"interval": "month",
|
|
|
|
"nickname": "Monthly",
|
|
|
|
"price_id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"product": Object {
|
|
|
|
"id": "109c85c734fb9992e7bc30a26af66c22f5c94d8dc62e0a33cb797be902c06b2d",
|
|
|
|
"product_id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
},
|
|
|
|
"type": "recurring",
|
|
|
|
},
|
|
|
|
"start_date": Any<String>,
|
|
|
|
"status": "active",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can add a subcription 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "1333",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-18 18:48:55 +03:00
|
|
|
exports[`Members API Can add a subscription 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-18 18:48:55 +03:00
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"products": Array [],
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Array [
|
|
|
|
Object {
|
|
|
|
"cancel_at_period_end": false,
|
|
|
|
"cancellation_reason": null,
|
|
|
|
"current_period_end": Any<String>,
|
|
|
|
"customer": Object {
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"id": "cus_123",
|
|
|
|
"name": null,
|
|
|
|
},
|
|
|
|
"default_payment_card_last4": null,
|
|
|
|
"id": "sub_123",
|
2022-03-18 19:06:38 +03:00
|
|
|
"offer": null,
|
2022-02-18 18:48:55 +03:00
|
|
|
"plan": Object {
|
|
|
|
"amount": 5000,
|
|
|
|
"currency": "USD",
|
|
|
|
"id": "173e16a1fffa7d232b398e4a9b08d266a456ae8f3d23e5f11cc608ced6730b12",
|
|
|
|
"interval": "month",
|
|
|
|
"nickname": "month",
|
|
|
|
},
|
|
|
|
"price": Object {
|
|
|
|
"amount": 5000,
|
|
|
|
"currency": "USD",
|
|
|
|
"id": "173e16a1fffa7d232b398e4a9b08d266a456ae8f3d23e5f11cc608ced6730b12",
|
|
|
|
"interval": "month",
|
|
|
|
"nickname": "Monthly",
|
|
|
|
"price_id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"product": Object {
|
|
|
|
"id": "109c85c734fb9992e7bc30a26af66c22f5c94d8dc62e0a33cb797be902c06b2d",
|
2022-03-18 19:06:38 +03:00
|
|
|
"name": "Default Product",
|
2022-02-18 18:48:55 +03:00
|
|
|
"product_id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
},
|
|
|
|
"type": "recurring",
|
|
|
|
},
|
|
|
|
"start_date": Any<String>,
|
|
|
|
"status": "active",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can add a subscription 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-03-18 19:06:38 +03:00
|
|
|
"content-length": "1391",
|
2022-02-18 18:48:55 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-03-10 12:10:50 +03:00
|
|
|
exports[`Members API Can add a subscription 3: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"last_seen_at": null,
|
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"products": Array [],
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Array [
|
|
|
|
Object {
|
|
|
|
"cancel_at_period_end": false,
|
|
|
|
"cancellation_reason": null,
|
|
|
|
"current_period_end": Any<String>,
|
|
|
|
"customer": Object {
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"id": "cus_123",
|
|
|
|
"name": null,
|
|
|
|
},
|
|
|
|
"default_payment_card_last4": null,
|
|
|
|
"id": "sub_123",
|
|
|
|
"offer": null,
|
|
|
|
"plan": Object {
|
|
|
|
"amount": 5000,
|
|
|
|
"currency": "USD",
|
|
|
|
"id": "173e16a1fffa7d232b398e4a9b08d266a456ae8f3d23e5f11cc608ced6730b12",
|
|
|
|
"interval": "month",
|
|
|
|
"nickname": "month",
|
|
|
|
},
|
|
|
|
"price": Object {
|
|
|
|
"amount": 5000,
|
|
|
|
"currency": "USD",
|
|
|
|
"id": "173e16a1fffa7d232b398e4a9b08d266a456ae8f3d23e5f11cc608ced6730b12",
|
|
|
|
"interval": "month",
|
|
|
|
"nickname": "Monthly",
|
|
|
|
"price_id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"product": Object {
|
|
|
|
"id": "109c85c734fb9992e7bc30a26af66c22f5c94d8dc62e0a33cb797be902c06b2d",
|
|
|
|
"name": "Default Product",
|
|
|
|
"product_id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
},
|
|
|
|
"type": "recurring",
|
|
|
|
},
|
|
|
|
"start_date": Any<String>,
|
|
|
|
"status": "active",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can add a subscription 4: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "1391",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can add and send a signup confirmation email 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member_getting_confirmation@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Array [],
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 17:56:16 +03:00
|
|
|
"name": "Send Me Confirmation",
|
|
|
|
"note": null,
|
|
|
|
"products": Array [],
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Array [],
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can add and send a signup confirmation email 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "477",
|
2022-02-17 17:56:16 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"location": Any<String>,
|
2022-02-14 16:13:54 +03:00
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can add and send a signup confirmation email 3: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can add complimentary subscription 1: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "compedtest@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Name",
|
|
|
|
"note": null,
|
|
|
|
"products": Array [],
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can add complimentary subscription 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "444",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
2022-02-17 17:56:16 +03:00
|
|
|
"location": StringMatching /https\\?:\\\\/\\\\/\\.\\*\\?\\\\/members\\\\/\\[a-f0-9\\]\\{24\\}\\\\//,
|
2022-02-14 16:13:54 +03:00
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can add complimentary subscription 3: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "compedtest@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Name",
|
|
|
|
"note": null,
|
|
|
|
"products": Array [],
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can add complimentary subscription 4: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "444",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can browse 1: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member2@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 50,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": null,
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 80,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Egon Spengler",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "trialing@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Ray Stantz",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "comped@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Vinz Clortho",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Winston Zeddemore",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip-paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Peter Venkman",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "with-product@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Dana Barrett",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 8,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can browse 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-03-08 14:29:51 +03:00
|
|
|
"content-length": "8299",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can browse with filter 1: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can browse with filter 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "664",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can browse with search 1: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can browse with search 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "664",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Can delete a member without cancelling Stripe Subscription 1: [body] 1`] = `Object {}`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can delete a member without cancelling Stripe Subscription 1: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can delete a member without cancelling Stripe Subscription 2: [body] 1`] = `Object {}`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Can delete a member without cancelling Stripe Subscription 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can destroy 1: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "memberTestDestroy@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "test",
|
|
|
|
"note": null,
|
|
|
|
"products": Array [],
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can destroy 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "451",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
2022-02-17 17:56:16 +03:00
|
|
|
"location": StringMatching /https\\?:\\\\/\\\\/\\.\\*\\?\\\\/members\\\\/\\[a-f0-9\\]\\{24\\}\\\\//,
|
2022-02-14 16:13:54 +03:00
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can destroy 3: [body] 1`] = `Object {}`;
|
2022-02-14 16:13:54 +03:00
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can destroy 4: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can destroy 5: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"errors": Array [
|
|
|
|
Object {
|
|
|
|
"code": null,
|
|
|
|
"context": "Member not found.",
|
|
|
|
"details": null,
|
|
|
|
"help": null,
|
2022-02-17 17:56:16 +03:00
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
2022-02-14 16:13:54 +03:00
|
|
|
"message": "Resource not found error, cannot read member.",
|
|
|
|
"property": null,
|
|
|
|
"type": "NotFoundError",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can destroy 6: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "224",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can edit by id 1: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member2Change@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "change me",
|
|
|
|
"note": "initial note",
|
|
|
|
"products": Array [],
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can edit by id 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "462",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
2022-02-17 17:56:16 +03:00
|
|
|
"location": StringMatching /https\\?:\\\\/\\\\/\\.\\*\\?\\\\/members\\\\/\\[a-f0-9\\]\\{24\\}\\\\//,
|
2022-02-14 16:13:54 +03:00
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can edit by id 3: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "cantChangeMe@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "changed",
|
|
|
|
"note": "edited note",
|
|
|
|
"products": Array [],
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": false,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can edit by id 4: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "459",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can export CSV 1: [body] 1`] = `Object {}`;
|
2022-02-14 16:13:54 +03:00
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can export CSV 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-17 17:56:16 +03:00
|
|
|
"content-disposition": Any<String>,
|
|
|
|
"content-length": Any<String>,
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "text/csv; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can export a filtered CSV 1: [body] 1`] = `Object {}`;
|
2022-02-14 16:13:54 +03:00
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can export a filtered CSV 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-17 17:56:16 +03:00
|
|
|
"content-disposition": Any<String>,
|
|
|
|
"content-length": "215",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "text/csv; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can fetch member counts stats 1: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"data": Array [
|
|
|
|
Object {
|
|
|
|
"comped": 0,
|
2022-02-18 07:30:14 +03:00
|
|
|
"date": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
2022-02-17 17:56:16 +03:00
|
|
|
"free": 2,
|
|
|
|
"paid": 1,
|
2022-02-14 16:13:54 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
"resource": "members",
|
|
|
|
"total": 3,
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can fetch member counts stats 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "92",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can filter by paid status 1: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 80,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Egon Spengler",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "trialing@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Ray Stantz",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "comped@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Vinz Clortho",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip-paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Peter Venkman",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "with-product@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"name": "Dana Barrett",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can filter by paid status 2: [headers] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-03-08 14:29:51 +03:00
|
|
|
"content-length": "6764",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
2022-03-09 16:02:17 +03:00
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can filter using contains operators 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip-paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"last_seen_at": null,
|
|
|
|
"name": "Peter Venkman",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can filter using contains operators 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "664",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
2022-03-08 14:29:51 +03:00
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can ignore any unknown includes 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 80,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"last_seen_at": null,
|
|
|
|
"name": "Egon Spengler",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "trialing@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"last_seen_at": null,
|
|
|
|
"name": "Ray Stantz",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "comped@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"last_seen_at": null,
|
|
|
|
"name": "Vinz Clortho",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip-paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"last_seen_at": null,
|
|
|
|
"name": "Peter Venkman",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "with-product@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"last_seen_at": null,
|
|
|
|
"name": "Dana Barrett",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can ignore any unknown includes 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "6764",
|
2022-02-14 16:13:54 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Can order by email_open_rate 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 80,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Egon Spengler",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member2@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 50,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": null,
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "trialing@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Ray Stantz",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "comped@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Vinz Clortho",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Winston Zeddemore",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip-paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Peter Venkman",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "with-product@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Dana Barrett",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 8,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 17:56:16 +03:00
|
|
|
exports[`Members API Can order by email_open_rate 1: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": Any<String>,
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can order by email_open_rate 2: [body] 1`] = `
|
2022-02-14 16:13:54 +03:00
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
2022-02-17 17:56:16 +03:00
|
|
|
"email": "paid@test.com",
|
2022-02-14 16:13:54 +03:00
|
|
|
"email_count": 0,
|
2022-02-17 17:56:16 +03:00
|
|
|
"email_open_rate": 80,
|
2022-02-14 16:13:54 +03:00
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-17 17:56:16 +03:00
|
|
|
"name": "Egon Spengler",
|
2022-02-14 16:13:54 +03:00
|
|
|
"note": null,
|
2022-02-17 17:56:16 +03:00
|
|
|
"status": "paid",
|
2022-02-14 16:13:54 +03:00
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
2022-02-17 17:56:16 +03:00
|
|
|
"email": "member2@test.com",
|
2022-02-14 16:13:54 +03:00
|
|
|
"email_count": 0,
|
2022-02-17 17:56:16 +03:00
|
|
|
"email_open_rate": 50,
|
2022-02-14 16:13:54 +03:00
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-17 17:56:16 +03:00
|
|
|
"name": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
2022-02-17 17:17:48 +03:00
|
|
|
"status": "free",
|
2022-02-16 21:33:46 +03:00
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "trialing@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Ray Stantz",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "comped@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Vinz Clortho",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Winston Zeddemore",
|
|
|
|
"note": null,
|
2022-02-14 16:13:54 +03:00
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
2022-02-16 21:33:46 +03:00
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip-paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Peter Venkman",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "with-product@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Dana Barrett",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
2022-02-17 17:17:48 +03:00
|
|
|
"total": 8,
|
2022-02-16 21:33:46 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Can order by email_open_rate 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": Any<String>,
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can order by email_open_rate 3: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member2@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 50,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": null,
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 80,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Egon Spengler",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "trialing@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Ray Stantz",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "comped@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Vinz Clortho",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Winston Zeddemore",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip-paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Peter Venkman",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "with-product@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-17 20:44:51 +03:00
|
|
|
"name": "Dana Barrett",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 8,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-16 21:33:46 +03:00
|
|
|
exports[`Members API Can order by email_open_rate 3: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-17 17:56:16 +03:00
|
|
|
"content-length": Any<String>,
|
2022-02-16 21:33:46 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can order by email_open_rate 4: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member2@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 50,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": null,
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 80,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Egon Spengler",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
2022-02-17 17:17:48 +03:00
|
|
|
"status": "free",
|
2022-02-16 21:33:46 +03:00
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "trialing@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Ray Stantz",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "comped@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Vinz Clortho",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Winston Zeddemore",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "vip-paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Peter Venkman",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "with-product@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Dana Barrett",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
2022-02-17 17:17:48 +03:00
|
|
|
"total": 8,
|
2022-02-16 21:33:46 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Can order by email_open_rate 4: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": Any<String>,
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-16 21:33:46 +03:00
|
|
|
exports[`Members API Can read 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-16 21:33:46 +03:00
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"products": Array [],
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can read 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "590",
|
2022-02-16 21:33:46 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can read and include email_recipients 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"email_recipients": Array [],
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-16 21:33:46 +03:00
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"products": Array [],
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Can read and include email_recipients 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "612",
|
2022-02-16 21:33:46 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Errors when fetching stats with unknown days param value 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"errors": Array [
|
|
|
|
Object {
|
|
|
|
"code": null,
|
|
|
|
"context": "Validation (matches) failed for id undefined.id",
|
|
|
|
"details": null,
|
|
|
|
"help": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
"message": "Validation error, cannot read member.",
|
|
|
|
"property": null,
|
|
|
|
"type": "ValidationError",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-16 21:33:46 +03:00
|
|
|
exports[`Members API Errors when fetching stats with unknown days param value 1: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "248",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Errors when fetching stats with unknown days param value 2: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"errors": Array [
|
|
|
|
Object {
|
|
|
|
"code": null,
|
|
|
|
"context": "Validation (matches) failed for id undefined.id",
|
|
|
|
"details": null,
|
|
|
|
"help": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
"message": "Validation error, cannot read member.",
|
|
|
|
"property": null,
|
|
|
|
"type": "ValidationError",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Errors when fetching stats with unknown days param value 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "248",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-16 21:33:46 +03:00
|
|
|
exports[`Members API Sarch by case-insensitive name egg receives member with name Mr Egg 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
2022-02-17 17:17:48 +03:00
|
|
|
"status": "free",
|
2022-02-16 21:33:46 +03:00
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Sarch by case-insensitive name egg receives member with name Mr Egg 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-17 17:17:48 +03:00
|
|
|
"content-length": "644",
|
2022-02-16 21:33:46 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Sarch for paid members retrieves member with email paid@test.com 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 80,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
|
|
|
"name": "Egon Spengler",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Sarch for paid members retrieves member with email paid@test.com 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "1296",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Search by case-insensitive email MEMBER2 receives member with email member2@test.com 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member2@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 50,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-16 21:33:46 +03:00
|
|
|
"name": null,
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Search by case-insensitive email MEMBER2 receives member with email member2@test.com 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "511",
|
2022-02-16 21:33:46 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-18 18:48:55 +03:00
|
|
|
exports[`Members API Search by case-insensitive name egg receives member with name Mr Egg 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "member1@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": null,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-18 18:48:55 +03:00
|
|
|
"name": "Mr Egg",
|
|
|
|
"note": null,
|
|
|
|
"status": "free",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Search by case-insensitive name egg receives member with name Mr Egg 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-02-22 21:20:31 +03:00
|
|
|
"content-length": "664",
|
2022-02-18 18:48:55 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Search for non existing member returns empty result set 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-16 21:33:46 +03:00
|
|
|
exports[`Members API Search for non existing member returns empty result set 1: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "102",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Search for non existing member returns empty result set 2: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API Search for non existing member returns empty result set 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "102",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-18 18:48:55 +03:00
|
|
|
exports[`Members API Search for paid members retrieves member with email paid@test.com 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"members": Array [
|
|
|
|
Object {
|
|
|
|
"avatar_image": null,
|
|
|
|
"comped": false,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"email": "paid@test.com",
|
|
|
|
"email_count": 0,
|
|
|
|
"email_open_rate": 80,
|
|
|
|
"email_opened_count": 0,
|
|
|
|
"geolocation": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"labels": Any<Array>,
|
2022-02-22 21:20:31 +03:00
|
|
|
"last_seen_at": null,
|
2022-02-18 18:48:55 +03:00
|
|
|
"name": "Egon Spengler",
|
|
|
|
"note": null,
|
|
|
|
"status": "paid",
|
|
|
|
"subscribed": true,
|
|
|
|
"subscriptions": Any<Array>,
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API Search for paid members retrieves member with email paid@test.com 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-03-08 14:29:51 +03:00
|
|
|
"content-length": "1682",
|
2022-02-18 18:48:55 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-17 20:44:51 +03:00
|
|
|
exports[`Members API without Stripe Add should fail when comped flag is passed in but Stripe is not enabled 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"errors": Array [
|
|
|
|
Object {
|
|
|
|
"code": null,
|
|
|
|
"context": "Missing Stripe connection. Attempting to import members with Stripe data when there is no Stripe account connected.",
|
|
|
|
"details": null,
|
|
|
|
"help": "You need to connect to Stripe to import Stripe customers. ",
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
"message": "Validation error, cannot save member.",
|
|
|
|
"property": "comped",
|
|
|
|
"type": "ValidationError",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-02-16 21:33:46 +03:00
|
|
|
exports[`Members API without Stripe Add should fail when comped flag is passed in but Stripe is not enabled 1: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "376",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Members API without Stripe Add should fail when comped flag is passed in but Stripe is not enabled 2: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"errors": Array [
|
|
|
|
Object {
|
|
|
|
"code": null,
|
|
|
|
"context": "Missing Stripe connection. Attempting to import members with Stripe data when there is no Stripe account connected.",
|
|
|
|
"details": null,
|
|
|
|
"help": "You need to connect to Stripe to import Stripe customers. ",
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
|
|
"message": "Validation error, cannot save member.",
|
|
|
|
"property": "comped",
|
|
|
|
"type": "ValidationError",
|
|
|
|
},
|
|
|
|
],
|
2022-02-14 16:13:54 +03:00
|
|
|
}
|
|
|
|
`;
|
2022-02-17 20:44:51 +03:00
|
|
|
|
|
|
|
exports[`Members API without Stripe Add should fail when comped flag is passed in but Stripe is not enabled 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "376",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|