@adtrackify/at-service-common 1.2.13 → 1.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/helpers/subscription-helper.spec.d.ts +1 -1
- package/dist/__tests__/helpers/subscription-helper.spec.js +27 -27
- package/dist/clients/generic/cognito-client.d.ts +19 -19
- package/dist/clients/generic/cognito-client.js +139 -139
- package/dist/clients/generic/dynamodb-client.d.ts +15 -15
- package/dist/clients/generic/dynamodb-client.js +122 -122
- package/dist/clients/generic/eventbridge-client.d.ts +14 -14
- package/dist/clients/generic/eventbridge-client.js +45 -45
- package/dist/clients/generic/http-client.d.ts +30 -30
- package/dist/clients/generic/http-client.js +28 -28
- package/dist/clients/generic/index.d.ts +6 -6
- package/dist/clients/generic/index.js +6 -6
- package/dist/clients/generic/s3-client.d.ts +6 -6
- package/dist/clients/generic/s3-client.js +24 -24
- package/dist/clients/generic/sqs-client.d.ts +14 -14
- package/dist/clients/generic/sqs-client.js +34 -34
- package/dist/clients/index.d.ts +3 -3
- package/dist/clients/index.js +3 -3
- package/dist/clients/internal-api/accounts-client.d.ts +82 -82
- package/dist/clients/internal-api/accounts-client.js +78 -78
- package/dist/clients/internal-api/destinations-client.d.ts +54 -54
- package/dist/clients/internal-api/destinations-client.js +36 -36
- package/dist/clients/internal-api/index.d.ts +4 -4
- package/dist/clients/internal-api/index.js +4 -4
- package/dist/clients/internal-api/shopify-app-install-client.d.ts +57 -57
- package/dist/clients/internal-api/shopify-app-install-client.js +42 -42
- package/dist/clients/internal-api/users-auth-client.d.ts +61 -61
- package/dist/clients/internal-api/users-auth-client.js +73 -73
- package/dist/clients/third-party/index.d.ts +1 -1
- package/dist/clients/third-party/index.js +1 -1
- package/dist/clients/third-party/shopify-client.d.ts +90 -90
- package/dist/clients/third-party/shopify-client.js +121 -121
- package/dist/helpers/index.d.ts +5 -5
- package/dist/helpers/index.js +5 -5
- package/dist/helpers/input-validation-helper.d.ts +2 -2
- package/dist/helpers/input-validation-helper.js +18 -18
- package/dist/helpers/logging-helper.d.ts +1 -1
- package/dist/helpers/logging-helper.js +9 -9
- package/dist/helpers/response-helper.d.ts +36 -36
- package/dist/helpers/response-helper.js +35 -35
- package/dist/helpers/shopify-helper.d.ts +9 -9
- package/dist/helpers/shopify-helper.js +23 -23
- package/dist/helpers/subscription-helper.d.ts +8 -8
- package/dist/helpers/subscription-helper.js +181 -181
- package/dist/index.d.ts +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/libs/crypto.d.ts +1 -1
- package/dist/libs/crypto.js +5 -5
- package/dist/libs/dates.d.ts +3 -3
- package/dist/libs/dates.js +10 -10
- package/dist/libs/http-error.d.ts +21 -21
- package/dist/libs/http-error.js +55 -55
- package/dist/libs/http-status-codes.d.ts +58 -58
- package/dist/libs/http-status-codes.js +59 -59
- package/dist/libs/index.d.ts +6 -6
- package/dist/libs/index.js +6 -6
- package/dist/libs/url.d.ts +1 -1
- package/dist/libs/url.js +9 -9
- package/dist/services/eventbridge-integration-service.d.ts +9 -9
- package/dist/services/eventbridge-integration-service.js +24 -24
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +1 -1
- package/dist/types/api-response.d.ts +6 -6
- package/dist/types/api-response.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal-events/event-detail-types.d.ts +20 -20
- package/dist/types/internal-events/event-detail-types.js +24 -24
- package/dist/types/internal-events/index.d.ts +1 -1
- package/dist/types/internal-events/index.js +1 -1
- package/package.json +2 -2
package/dist/libs/http-error.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { strict as assert } from 'assert';
|
|
2
|
-
const deepClone = (o = {}) => JSON.parse(JSON.stringify(o));
|
|
3
|
-
const containsStackTrace = (text = '') => /at.+\.js:\d+:\d+/.test(text);
|
|
4
|
-
const objectContainsStackTrace = (obj) => !obj ? false : containsStackTrace(JSON.stringify(obj));
|
|
5
|
-
const supportedStatusCodes = {
|
|
6
|
-
400: 'Bad Request',
|
|
7
|
-
401: 'Unauthorized',
|
|
8
|
-
403: 'Forbidden',
|
|
9
|
-
404: 'Not Found',
|
|
10
|
-
405: 'Method Not Allowed',
|
|
11
|
-
409: 'Conflict',
|
|
12
|
-
412: 'Precondition Failed',
|
|
13
|
-
413: 'Payload Too Large',
|
|
14
|
-
415: 'Unsupported Media Type',
|
|
15
|
-
428: 'Precondition Required',
|
|
16
|
-
429: 'Too Many Requests',
|
|
17
|
-
500: 'Internal Server Error',
|
|
18
|
-
501: 'Not Implemented',
|
|
19
|
-
502: 'Bad Gateway',
|
|
20
|
-
503: 'Service Unavailable',
|
|
21
|
-
504: 'Gateway Timeout'
|
|
22
|
-
};
|
|
23
|
-
const supportedStatusCodesMessage = `statusCode must be one of the following: ${JSON.stringify(Object.keys(supportedStatusCodes))}`;
|
|
24
|
-
export class HttpError extends Error {
|
|
25
|
-
body;
|
|
26
|
-
headers;
|
|
27
|
-
statusCode;
|
|
28
|
-
isServerError;
|
|
29
|
-
constructor(statusCode, message, body, headers) {
|
|
30
|
-
assert(statusCode in supportedStatusCodes, supportedStatusCodesMessage);
|
|
31
|
-
const isServerError = statusCode > 499;
|
|
32
|
-
assert(body === undefined || typeof body === 'object', 'body must be an object or omitted');
|
|
33
|
-
assert(headers === undefined || typeof headers === 'object', 'headers must be an object or omitted');
|
|
34
|
-
message = message ?? supportedStatusCodes[statusCode];
|
|
35
|
-
assert(!containsStackTrace(message) && !objectContainsStackTrace(body), 'the message or data parameters may not contain errors or stack traces');
|
|
36
|
-
super(message);
|
|
37
|
-
this.body = deepClone(body);
|
|
38
|
-
this.headers = deepClone(headers);
|
|
39
|
-
this.statusCode = statusCode;
|
|
40
|
-
this.isServerError = isServerError;
|
|
41
|
-
if (!this?.body?.message) {
|
|
42
|
-
this.body.message = this.message;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
static get supportedStatusCodes() { return supportedStatusCodes; }
|
|
46
|
-
static badRequest = (message, body, headers) => { return new HttpError(400, message, body, headers); };
|
|
47
|
-
static unauthorized = (message, body, headers) => new HttpError(401, message, body, headers);
|
|
48
|
-
static forbidden = (message, body, headers) => new HttpError(403, message, body, headers);
|
|
49
|
-
static notFound = (message, body, headers) => new HttpError(404, message, body, headers);
|
|
50
|
-
static internal = (message, body, headers) => new HttpError(500, message, body, headers);
|
|
51
|
-
static notImplemented = () => new HttpError(501);
|
|
52
|
-
static badGateway = () => new HttpError(502);
|
|
53
|
-
static serviceUnavailable = (headers) => new HttpError(503, undefined, undefined, headers);
|
|
54
|
-
static gatewayTimeout = () => new HttpError(504);
|
|
55
|
-
}
|
|
1
|
+
import { strict as assert } from 'assert';
|
|
2
|
+
const deepClone = (o = {}) => JSON.parse(JSON.stringify(o));
|
|
3
|
+
const containsStackTrace = (text = '') => /at.+\.js:\d+:\d+/.test(text);
|
|
4
|
+
const objectContainsStackTrace = (obj) => !obj ? false : containsStackTrace(JSON.stringify(obj));
|
|
5
|
+
const supportedStatusCodes = {
|
|
6
|
+
400: 'Bad Request',
|
|
7
|
+
401: 'Unauthorized',
|
|
8
|
+
403: 'Forbidden',
|
|
9
|
+
404: 'Not Found',
|
|
10
|
+
405: 'Method Not Allowed',
|
|
11
|
+
409: 'Conflict',
|
|
12
|
+
412: 'Precondition Failed',
|
|
13
|
+
413: 'Payload Too Large',
|
|
14
|
+
415: 'Unsupported Media Type',
|
|
15
|
+
428: 'Precondition Required',
|
|
16
|
+
429: 'Too Many Requests',
|
|
17
|
+
500: 'Internal Server Error',
|
|
18
|
+
501: 'Not Implemented',
|
|
19
|
+
502: 'Bad Gateway',
|
|
20
|
+
503: 'Service Unavailable',
|
|
21
|
+
504: 'Gateway Timeout'
|
|
22
|
+
};
|
|
23
|
+
const supportedStatusCodesMessage = `statusCode must be one of the following: ${JSON.stringify(Object.keys(supportedStatusCodes))}`;
|
|
24
|
+
export class HttpError extends Error {
|
|
25
|
+
body;
|
|
26
|
+
headers;
|
|
27
|
+
statusCode;
|
|
28
|
+
isServerError;
|
|
29
|
+
constructor(statusCode, message, body, headers) {
|
|
30
|
+
assert(statusCode in supportedStatusCodes, supportedStatusCodesMessage);
|
|
31
|
+
const isServerError = statusCode > 499;
|
|
32
|
+
assert(body === undefined || typeof body === 'object', 'body must be an object or omitted');
|
|
33
|
+
assert(headers === undefined || typeof headers === 'object', 'headers must be an object or omitted');
|
|
34
|
+
message = message ?? supportedStatusCodes[statusCode];
|
|
35
|
+
assert(!containsStackTrace(message) && !objectContainsStackTrace(body), 'the message or data parameters may not contain errors or stack traces');
|
|
36
|
+
super(message);
|
|
37
|
+
this.body = deepClone(body);
|
|
38
|
+
this.headers = deepClone(headers);
|
|
39
|
+
this.statusCode = statusCode;
|
|
40
|
+
this.isServerError = isServerError;
|
|
41
|
+
if (!this?.body?.message) {
|
|
42
|
+
this.body.message = this.message;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
static get supportedStatusCodes() { return supportedStatusCodes; }
|
|
46
|
+
static badRequest = (message, body, headers) => { return new HttpError(400, message, body, headers); };
|
|
47
|
+
static unauthorized = (message, body, headers) => new HttpError(401, message, body, headers);
|
|
48
|
+
static forbidden = (message, body, headers) => new HttpError(403, message, body, headers);
|
|
49
|
+
static notFound = (message, body, headers) => new HttpError(404, message, body, headers);
|
|
50
|
+
static internal = (message, body, headers) => new HttpError(500, message, body, headers);
|
|
51
|
+
static notImplemented = () => new HttpError(501);
|
|
52
|
+
static badGateway = () => new HttpError(502);
|
|
53
|
+
static serviceUnavailable = (headers) => new HttpError(503, undefined, undefined, headers);
|
|
54
|
+
static gatewayTimeout = () => new HttpError(504);
|
|
55
|
+
}
|
|
56
56
|
//# sourceMappingURL=http-error.js.map
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
export declare enum HttpStatusCodes {
|
|
2
|
-
CONTINUE = 100,
|
|
3
|
-
SWITCHING_PROTOCOLS = 101,
|
|
4
|
-
PROCESSING = 102,
|
|
5
|
-
OK = 200,
|
|
6
|
-
CREATED = 201,
|
|
7
|
-
ACCEPTED = 202,
|
|
8
|
-
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
9
|
-
NO_CONTENT = 204,
|
|
10
|
-
RESET_CONTENT = 205,
|
|
11
|
-
PARTIAL_CONTENT = 206,
|
|
12
|
-
MULTI_STATUS = 207,
|
|
13
|
-
MULTIPLE_CHOICES = 300,
|
|
14
|
-
MOVED_PERMANENTLY = 301,
|
|
15
|
-
MOVED_TEMPORARILY = 302,
|
|
16
|
-
SEE_OTHER = 303,
|
|
17
|
-
NOT_MODIFIED = 304,
|
|
18
|
-
USE_PROXY = 305,
|
|
19
|
-
TEMPORARY_REDIRECT = 307,
|
|
20
|
-
PERMANENT_REDIRECT = 308,
|
|
21
|
-
BAD_REQUEST = 400,
|
|
22
|
-
UNAUTHORIZED = 401,
|
|
23
|
-
PAYMENT_REQUIRED = 402,
|
|
24
|
-
FORBIDDEN = 403,
|
|
25
|
-
NOT_FOUND = 404,
|
|
26
|
-
METHOD_NOT_ALLOWED = 405,
|
|
27
|
-
NOT_ACCEPTABLE = 406,
|
|
28
|
-
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
29
|
-
REQUEST_TIMEOUT = 408,
|
|
30
|
-
CONFLICT = 409,
|
|
31
|
-
GONE = 410,
|
|
32
|
-
LENGTH_REQUIRED = 411,
|
|
33
|
-
PRECONDITION_FAILED = 412,
|
|
34
|
-
REQUEST_TOO_LONG = 413,
|
|
35
|
-
REQUEST_URI_TOO_LONG = 414,
|
|
36
|
-
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
37
|
-
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
38
|
-
EXPECTATION_FAILED = 417,
|
|
39
|
-
IM_A_TEAPOT = 418,
|
|
40
|
-
INSUFFICIENT_SPACE_ON_RESOURCE = 419,
|
|
41
|
-
METHOD_FAILURE = 420,
|
|
42
|
-
MISDIRECTED_REQUEST = 421,
|
|
43
|
-
UNPROCESSABLE_ENTITY = 422,
|
|
44
|
-
LOCKED = 423,
|
|
45
|
-
FAILED_DEPENDENCY = 424,
|
|
46
|
-
PRECONDITION_REQUIRED = 428,
|
|
47
|
-
TOO_MANY_REQUESTS = 429,
|
|
48
|
-
REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
|
|
49
|
-
UNAVAILABLE_FOR_LEGAL_REASONS = 451,
|
|
50
|
-
INTERNAL_SERVER_ERROR = 500,
|
|
51
|
-
NOT_IMPLEMENTED = 501,
|
|
52
|
-
BAD_GATEWAY = 502,
|
|
53
|
-
SERVICE_UNAVAILABLE = 503,
|
|
54
|
-
GATEWAY_TIMEOUT = 504,
|
|
55
|
-
HTTP_VERSION_NOT_SUPPORTED = 505,
|
|
56
|
-
INSUFFICIENT_STORAGE = 507,
|
|
57
|
-
NETWORK_AUTHENTICATION_REQUIRED = 511
|
|
58
|
-
}
|
|
1
|
+
export declare enum HttpStatusCodes {
|
|
2
|
+
CONTINUE = 100,
|
|
3
|
+
SWITCHING_PROTOCOLS = 101,
|
|
4
|
+
PROCESSING = 102,
|
|
5
|
+
OK = 200,
|
|
6
|
+
CREATED = 201,
|
|
7
|
+
ACCEPTED = 202,
|
|
8
|
+
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
9
|
+
NO_CONTENT = 204,
|
|
10
|
+
RESET_CONTENT = 205,
|
|
11
|
+
PARTIAL_CONTENT = 206,
|
|
12
|
+
MULTI_STATUS = 207,
|
|
13
|
+
MULTIPLE_CHOICES = 300,
|
|
14
|
+
MOVED_PERMANENTLY = 301,
|
|
15
|
+
MOVED_TEMPORARILY = 302,
|
|
16
|
+
SEE_OTHER = 303,
|
|
17
|
+
NOT_MODIFIED = 304,
|
|
18
|
+
USE_PROXY = 305,
|
|
19
|
+
TEMPORARY_REDIRECT = 307,
|
|
20
|
+
PERMANENT_REDIRECT = 308,
|
|
21
|
+
BAD_REQUEST = 400,
|
|
22
|
+
UNAUTHORIZED = 401,
|
|
23
|
+
PAYMENT_REQUIRED = 402,
|
|
24
|
+
FORBIDDEN = 403,
|
|
25
|
+
NOT_FOUND = 404,
|
|
26
|
+
METHOD_NOT_ALLOWED = 405,
|
|
27
|
+
NOT_ACCEPTABLE = 406,
|
|
28
|
+
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
29
|
+
REQUEST_TIMEOUT = 408,
|
|
30
|
+
CONFLICT = 409,
|
|
31
|
+
GONE = 410,
|
|
32
|
+
LENGTH_REQUIRED = 411,
|
|
33
|
+
PRECONDITION_FAILED = 412,
|
|
34
|
+
REQUEST_TOO_LONG = 413,
|
|
35
|
+
REQUEST_URI_TOO_LONG = 414,
|
|
36
|
+
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
37
|
+
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
38
|
+
EXPECTATION_FAILED = 417,
|
|
39
|
+
IM_A_TEAPOT = 418,
|
|
40
|
+
INSUFFICIENT_SPACE_ON_RESOURCE = 419,
|
|
41
|
+
METHOD_FAILURE = 420,
|
|
42
|
+
MISDIRECTED_REQUEST = 421,
|
|
43
|
+
UNPROCESSABLE_ENTITY = 422,
|
|
44
|
+
LOCKED = 423,
|
|
45
|
+
FAILED_DEPENDENCY = 424,
|
|
46
|
+
PRECONDITION_REQUIRED = 428,
|
|
47
|
+
TOO_MANY_REQUESTS = 429,
|
|
48
|
+
REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
|
|
49
|
+
UNAVAILABLE_FOR_LEGAL_REASONS = 451,
|
|
50
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
51
|
+
NOT_IMPLEMENTED = 501,
|
|
52
|
+
BAD_GATEWAY = 502,
|
|
53
|
+
SERVICE_UNAVAILABLE = 503,
|
|
54
|
+
GATEWAY_TIMEOUT = 504,
|
|
55
|
+
HTTP_VERSION_NOT_SUPPORTED = 505,
|
|
56
|
+
INSUFFICIENT_STORAGE = 507,
|
|
57
|
+
NETWORK_AUTHENTICATION_REQUIRED = 511
|
|
58
|
+
}
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
export var HttpStatusCodes;
|
|
2
|
-
(function (HttpStatusCodes) {
|
|
3
|
-
HttpStatusCodes[HttpStatusCodes["CONTINUE"] = 100] = "CONTINUE";
|
|
4
|
-
HttpStatusCodes[HttpStatusCodes["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
5
|
-
HttpStatusCodes[HttpStatusCodes["PROCESSING"] = 102] = "PROCESSING";
|
|
6
|
-
HttpStatusCodes[HttpStatusCodes["OK"] = 200] = "OK";
|
|
7
|
-
HttpStatusCodes[HttpStatusCodes["CREATED"] = 201] = "CREATED";
|
|
8
|
-
HttpStatusCodes[HttpStatusCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
9
|
-
HttpStatusCodes[HttpStatusCodes["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
10
|
-
HttpStatusCodes[HttpStatusCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
11
|
-
HttpStatusCodes[HttpStatusCodes["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
12
|
-
HttpStatusCodes[HttpStatusCodes["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
13
|
-
HttpStatusCodes[HttpStatusCodes["MULTI_STATUS"] = 207] = "MULTI_STATUS";
|
|
14
|
-
HttpStatusCodes[HttpStatusCodes["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES";
|
|
15
|
-
HttpStatusCodes[HttpStatusCodes["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
16
|
-
HttpStatusCodes[HttpStatusCodes["MOVED_TEMPORARILY"] = 302] = "MOVED_TEMPORARILY";
|
|
17
|
-
HttpStatusCodes[HttpStatusCodes["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
18
|
-
HttpStatusCodes[HttpStatusCodes["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
19
|
-
HttpStatusCodes[HttpStatusCodes["USE_PROXY"] = 305] = "USE_PROXY";
|
|
20
|
-
HttpStatusCodes[HttpStatusCodes["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
21
|
-
HttpStatusCodes[HttpStatusCodes["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
22
|
-
HttpStatusCodes[HttpStatusCodes["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
23
|
-
HttpStatusCodes[HttpStatusCodes["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
24
|
-
HttpStatusCodes[HttpStatusCodes["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
25
|
-
HttpStatusCodes[HttpStatusCodes["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
26
|
-
HttpStatusCodes[HttpStatusCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
27
|
-
HttpStatusCodes[HttpStatusCodes["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
28
|
-
HttpStatusCodes[HttpStatusCodes["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
29
|
-
HttpStatusCodes[HttpStatusCodes["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
30
|
-
HttpStatusCodes[HttpStatusCodes["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
31
|
-
HttpStatusCodes[HttpStatusCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
32
|
-
HttpStatusCodes[HttpStatusCodes["GONE"] = 410] = "GONE";
|
|
33
|
-
HttpStatusCodes[HttpStatusCodes["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
34
|
-
HttpStatusCodes[HttpStatusCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
35
|
-
HttpStatusCodes[HttpStatusCodes["REQUEST_TOO_LONG"] = 413] = "REQUEST_TOO_LONG";
|
|
36
|
-
HttpStatusCodes[HttpStatusCodes["REQUEST_URI_TOO_LONG"] = 414] = "REQUEST_URI_TOO_LONG";
|
|
37
|
-
HttpStatusCodes[HttpStatusCodes["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
38
|
-
HttpStatusCodes[HttpStatusCodes["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
39
|
-
HttpStatusCodes[HttpStatusCodes["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
40
|
-
HttpStatusCodes[HttpStatusCodes["IM_A_TEAPOT"] = 418] = "IM_A_TEAPOT";
|
|
41
|
-
HttpStatusCodes[HttpStatusCodes["INSUFFICIENT_SPACE_ON_RESOURCE"] = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE";
|
|
42
|
-
HttpStatusCodes[HttpStatusCodes["METHOD_FAILURE"] = 420] = "METHOD_FAILURE";
|
|
43
|
-
HttpStatusCodes[HttpStatusCodes["MISDIRECTED_REQUEST"] = 421] = "MISDIRECTED_REQUEST";
|
|
44
|
-
HttpStatusCodes[HttpStatusCodes["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
45
|
-
HttpStatusCodes[HttpStatusCodes["LOCKED"] = 423] = "LOCKED";
|
|
46
|
-
HttpStatusCodes[HttpStatusCodes["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
47
|
-
HttpStatusCodes[HttpStatusCodes["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
48
|
-
HttpStatusCodes[HttpStatusCodes["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
49
|
-
HttpStatusCodes[HttpStatusCodes["REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE";
|
|
50
|
-
HttpStatusCodes[HttpStatusCodes["UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS";
|
|
51
|
-
HttpStatusCodes[HttpStatusCodes["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
52
|
-
HttpStatusCodes[HttpStatusCodes["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
53
|
-
HttpStatusCodes[HttpStatusCodes["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
54
|
-
HttpStatusCodes[HttpStatusCodes["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
55
|
-
HttpStatusCodes[HttpStatusCodes["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
56
|
-
HttpStatusCodes[HttpStatusCodes["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
57
|
-
HttpStatusCodes[HttpStatusCodes["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
58
|
-
HttpStatusCodes[HttpStatusCodes["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
59
|
-
})(HttpStatusCodes || (HttpStatusCodes = {}));
|
|
1
|
+
export var HttpStatusCodes;
|
|
2
|
+
(function (HttpStatusCodes) {
|
|
3
|
+
HttpStatusCodes[HttpStatusCodes["CONTINUE"] = 100] = "CONTINUE";
|
|
4
|
+
HttpStatusCodes[HttpStatusCodes["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
5
|
+
HttpStatusCodes[HttpStatusCodes["PROCESSING"] = 102] = "PROCESSING";
|
|
6
|
+
HttpStatusCodes[HttpStatusCodes["OK"] = 200] = "OK";
|
|
7
|
+
HttpStatusCodes[HttpStatusCodes["CREATED"] = 201] = "CREATED";
|
|
8
|
+
HttpStatusCodes[HttpStatusCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
9
|
+
HttpStatusCodes[HttpStatusCodes["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
10
|
+
HttpStatusCodes[HttpStatusCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
11
|
+
HttpStatusCodes[HttpStatusCodes["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
12
|
+
HttpStatusCodes[HttpStatusCodes["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
13
|
+
HttpStatusCodes[HttpStatusCodes["MULTI_STATUS"] = 207] = "MULTI_STATUS";
|
|
14
|
+
HttpStatusCodes[HttpStatusCodes["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES";
|
|
15
|
+
HttpStatusCodes[HttpStatusCodes["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
16
|
+
HttpStatusCodes[HttpStatusCodes["MOVED_TEMPORARILY"] = 302] = "MOVED_TEMPORARILY";
|
|
17
|
+
HttpStatusCodes[HttpStatusCodes["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
18
|
+
HttpStatusCodes[HttpStatusCodes["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
19
|
+
HttpStatusCodes[HttpStatusCodes["USE_PROXY"] = 305] = "USE_PROXY";
|
|
20
|
+
HttpStatusCodes[HttpStatusCodes["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
21
|
+
HttpStatusCodes[HttpStatusCodes["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
22
|
+
HttpStatusCodes[HttpStatusCodes["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
23
|
+
HttpStatusCodes[HttpStatusCodes["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
24
|
+
HttpStatusCodes[HttpStatusCodes["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
25
|
+
HttpStatusCodes[HttpStatusCodes["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
26
|
+
HttpStatusCodes[HttpStatusCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
27
|
+
HttpStatusCodes[HttpStatusCodes["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
28
|
+
HttpStatusCodes[HttpStatusCodes["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
29
|
+
HttpStatusCodes[HttpStatusCodes["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
30
|
+
HttpStatusCodes[HttpStatusCodes["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
31
|
+
HttpStatusCodes[HttpStatusCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
32
|
+
HttpStatusCodes[HttpStatusCodes["GONE"] = 410] = "GONE";
|
|
33
|
+
HttpStatusCodes[HttpStatusCodes["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
34
|
+
HttpStatusCodes[HttpStatusCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
35
|
+
HttpStatusCodes[HttpStatusCodes["REQUEST_TOO_LONG"] = 413] = "REQUEST_TOO_LONG";
|
|
36
|
+
HttpStatusCodes[HttpStatusCodes["REQUEST_URI_TOO_LONG"] = 414] = "REQUEST_URI_TOO_LONG";
|
|
37
|
+
HttpStatusCodes[HttpStatusCodes["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
38
|
+
HttpStatusCodes[HttpStatusCodes["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
39
|
+
HttpStatusCodes[HttpStatusCodes["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
40
|
+
HttpStatusCodes[HttpStatusCodes["IM_A_TEAPOT"] = 418] = "IM_A_TEAPOT";
|
|
41
|
+
HttpStatusCodes[HttpStatusCodes["INSUFFICIENT_SPACE_ON_RESOURCE"] = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE";
|
|
42
|
+
HttpStatusCodes[HttpStatusCodes["METHOD_FAILURE"] = 420] = "METHOD_FAILURE";
|
|
43
|
+
HttpStatusCodes[HttpStatusCodes["MISDIRECTED_REQUEST"] = 421] = "MISDIRECTED_REQUEST";
|
|
44
|
+
HttpStatusCodes[HttpStatusCodes["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
45
|
+
HttpStatusCodes[HttpStatusCodes["LOCKED"] = 423] = "LOCKED";
|
|
46
|
+
HttpStatusCodes[HttpStatusCodes["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
47
|
+
HttpStatusCodes[HttpStatusCodes["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
48
|
+
HttpStatusCodes[HttpStatusCodes["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
49
|
+
HttpStatusCodes[HttpStatusCodes["REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE";
|
|
50
|
+
HttpStatusCodes[HttpStatusCodes["UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS";
|
|
51
|
+
HttpStatusCodes[HttpStatusCodes["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
52
|
+
HttpStatusCodes[HttpStatusCodes["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
53
|
+
HttpStatusCodes[HttpStatusCodes["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
54
|
+
HttpStatusCodes[HttpStatusCodes["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
55
|
+
HttpStatusCodes[HttpStatusCodes["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
56
|
+
HttpStatusCodes[HttpStatusCodes["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
57
|
+
HttpStatusCodes[HttpStatusCodes["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
58
|
+
HttpStatusCodes[HttpStatusCodes["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
59
|
+
})(HttpStatusCodes || (HttpStatusCodes = {}));
|
|
60
60
|
//# sourceMappingURL=http-status-codes.js.map
|
package/dist/libs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '../helpers/shopify-helper.js';
|
|
2
|
-
export * from './crypto.js';
|
|
3
|
-
export * from './dates.js';
|
|
4
|
-
export * from './http-error.js';
|
|
5
|
-
export * from './http-status-codes.js';
|
|
6
|
-
export * from './url.js';
|
|
1
|
+
export * from '../helpers/shopify-helper.js';
|
|
2
|
+
export * from './crypto.js';
|
|
3
|
+
export * from './dates.js';
|
|
4
|
+
export * from './http-error.js';
|
|
5
|
+
export * from './http-status-codes.js';
|
|
6
|
+
export * from './url.js';
|
package/dist/libs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '../helpers/shopify-helper.js';
|
|
2
|
-
export * from './crypto.js';
|
|
3
|
-
export * from './dates.js';
|
|
4
|
-
export * from './http-error.js';
|
|
5
|
-
export * from './http-status-codes.js';
|
|
6
|
-
export * from './url.js';
|
|
1
|
+
export * from '../helpers/shopify-helper.js';
|
|
2
|
+
export * from './crypto.js';
|
|
3
|
+
export * from './dates.js';
|
|
4
|
+
export * from './http-error.js';
|
|
5
|
+
export * from './http-status-codes.js';
|
|
6
|
+
export * from './url.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/libs/url.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const mapObjectToQueryString: (inputObj: any) => string;
|
|
1
|
+
export declare const mapObjectToQueryString: (inputObj: any) => string;
|
package/dist/libs/url.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export const mapObjectToQueryString = (inputObj) => {
|
|
2
|
-
const qsp = Object.entries(inputObj).sort((a, b) => a[0] < b[0] ? -1 : 1);
|
|
3
|
-
const urlParams = new URLSearchParams();
|
|
4
|
-
qsp.map(p => {
|
|
5
|
-
urlParams.append(p[0], p[1]);
|
|
6
|
-
});
|
|
7
|
-
const qs = urlParams.toString();
|
|
8
|
-
return qs;
|
|
9
|
-
};
|
|
1
|
+
export const mapObjectToQueryString = (inputObj) => {
|
|
2
|
+
const qsp = Object.entries(inputObj).sort((a, b) => a[0] < b[0] ? -1 : 1);
|
|
3
|
+
const urlParams = new URLSearchParams();
|
|
4
|
+
qsp.map(p => {
|
|
5
|
+
urlParams.append(p[0], p[1]);
|
|
6
|
+
});
|
|
7
|
+
const qs = urlParams.toString();
|
|
8
|
+
return qs;
|
|
9
|
+
};
|
|
10
10
|
//# sourceMappingURL=url.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EventBridgeClient } from '../clients/generic/eventbridge-client.js';
|
|
2
|
-
import { Message, TemplatedMessage } from 'postmark';
|
|
3
|
-
export declare class EventBridgeIntegrationService {
|
|
4
|
-
eventBridgeClient: EventBridgeClient;
|
|
5
|
-
EVENT_BUS_NAME: string;
|
|
6
|
-
constructor(eventBusName: string);
|
|
7
|
-
sendPostmarkEmailEvent: (eventSource: string, postmarkMessage: Message, postmarkServerToken: string) => Promise<import("@aws-sdk/client-eventbridge").PutEventsCommandOutput>;
|
|
8
|
-
sendPostmarkTemplatedEmailEvent: (eventSource: string, postmarkMessage: TemplatedMessage, postmarkServerToken: string) => Promise<import("@aws-sdk/client-eventbridge").PutEventsCommandOutput>;
|
|
9
|
-
}
|
|
1
|
+
import { EventBridgeClient } from '../clients/generic/eventbridge-client.js';
|
|
2
|
+
import { Message, TemplatedMessage } from 'postmark';
|
|
3
|
+
export declare class EventBridgeIntegrationService {
|
|
4
|
+
eventBridgeClient: EventBridgeClient;
|
|
5
|
+
EVENT_BUS_NAME: string;
|
|
6
|
+
constructor(eventBusName: string);
|
|
7
|
+
sendPostmarkEmailEvent: (eventSource: string, postmarkMessage: Message, postmarkServerToken: string) => Promise<import("@aws-sdk/client-eventbridge").PutEventsCommandOutput>;
|
|
8
|
+
sendPostmarkTemplatedEmailEvent: (eventSource: string, postmarkMessage: TemplatedMessage, postmarkServerToken: string) => Promise<import("@aws-sdk/client-eventbridge").PutEventsCommandOutput>;
|
|
9
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { EventBridgeClient } from '../clients/generic/eventbridge-client.js';
|
|
2
|
-
import { ADTRACKIFY_EVENT_BRIDGE_EVENTS, PostmarkRequestType } from '../types/internal-events/event-detail-types.js';
|
|
3
|
-
export class EventBridgeIntegrationService {
|
|
4
|
-
eventBridgeClient;
|
|
5
|
-
EVENT_BUS_NAME;
|
|
6
|
-
constructor(eventBusName) {
|
|
7
|
-
this.eventBridgeClient = new EventBridgeClient(eventBusName);
|
|
8
|
-
this.EVENT_BUS_NAME = eventBusName;
|
|
9
|
-
}
|
|
10
|
-
sendPostmarkEmailEvent = async (eventSource, postmarkMessage, postmarkServerToken) => {
|
|
11
|
-
return await this.eventBridgeClient.buildAndSendEvent(eventSource, ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL, {
|
|
12
|
-
postmarkMessage,
|
|
13
|
-
postmarkRequestType: PostmarkRequestType.SINGLE_EMAIL,
|
|
14
|
-
postmarkServerToken
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
sendPostmarkTemplatedEmailEvent = async (eventSource, postmarkMessage, postmarkServerToken) => {
|
|
18
|
-
return await this.eventBridgeClient.buildAndSendEvent(eventSource, ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL, {
|
|
19
|
-
postmarkMessage,
|
|
20
|
-
postmarkRequestType: PostmarkRequestType.TEMPLATE_EMAIL,
|
|
21
|
-
postmarkServerToken
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
}
|
|
1
|
+
import { EventBridgeClient } from '../clients/generic/eventbridge-client.js';
|
|
2
|
+
import { ADTRACKIFY_EVENT_BRIDGE_EVENTS, PostmarkRequestType } from '../types/internal-events/event-detail-types.js';
|
|
3
|
+
export class EventBridgeIntegrationService {
|
|
4
|
+
eventBridgeClient;
|
|
5
|
+
EVENT_BUS_NAME;
|
|
6
|
+
constructor(eventBusName) {
|
|
7
|
+
this.eventBridgeClient = new EventBridgeClient(eventBusName);
|
|
8
|
+
this.EVENT_BUS_NAME = eventBusName;
|
|
9
|
+
}
|
|
10
|
+
sendPostmarkEmailEvent = async (eventSource, postmarkMessage, postmarkServerToken) => {
|
|
11
|
+
return await this.eventBridgeClient.buildAndSendEvent(eventSource, ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL, {
|
|
12
|
+
postmarkMessage,
|
|
13
|
+
postmarkRequestType: PostmarkRequestType.SINGLE_EMAIL,
|
|
14
|
+
postmarkServerToken
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
sendPostmarkTemplatedEmailEvent = async (eventSource, postmarkMessage, postmarkServerToken) => {
|
|
18
|
+
return await this.eventBridgeClient.buildAndSendEvent(eventSource, ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL, {
|
|
19
|
+
postmarkMessage,
|
|
20
|
+
postmarkRequestType: PostmarkRequestType.TEMPLATE_EMAIL,
|
|
21
|
+
postmarkServerToken
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
25
|
//# sourceMappingURL=eventbridge-integration-service.js.map
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './eventbridge-integration-service.js';
|
|
1
|
+
export * from './eventbridge-integration-service.js';
|
package/dist/services/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './eventbridge-integration-service.js';
|
|
1
|
+
export * from './eventbridge-integration-service.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AxiosResponseHeaders } from 'axios';
|
|
2
|
-
export interface ApiResponse<T> {
|
|
3
|
-
data: T;
|
|
4
|
-
status: number;
|
|
5
|
-
headers?: AxiosResponseHeaders;
|
|
6
|
-
}
|
|
1
|
+
import { AxiosResponseHeaders } from 'axios';
|
|
2
|
+
export interface ApiResponse<T> {
|
|
3
|
+
data: T;
|
|
4
|
+
status: number;
|
|
5
|
+
headers?: AxiosResponseHeaders;
|
|
6
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=api-response.js.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './internal-events/index.js';
|
|
1
|
+
export * from './internal-events/index.js';
|
package/dist/types/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './internal-events/index.js';
|
|
1
|
+
export * from './internal-events/index.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export declare enum ADTRACKIFY_EVENT_TYPES {
|
|
2
|
-
NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = "shopifySubscriptionCreated",
|
|
3
|
-
NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = "subscription.signupCompleted",
|
|
4
|
-
REQUEST_SET_ACCOUNT_OWNER = "setAccountOwner",
|
|
5
|
-
REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = "setAccountSubscriptionId"
|
|
6
|
-
}
|
|
7
|
-
export declare enum ADTRACKIFY_EVENT_SOURCES {
|
|
8
|
-
SUBSCRIPTIONS = "subscriptions"
|
|
9
|
-
}
|
|
10
|
-
export declare const enum PostmarkRequestType {
|
|
11
|
-
SINGLE_EMAIL = "single_email",
|
|
12
|
-
TEMPLATE_EMAIL = "template_email"
|
|
13
|
-
}
|
|
14
|
-
export declare enum ADTRACKIFY_EVENT_BRIDGE_EVENTS {
|
|
15
|
-
SEND_POSTMARK_EMAIL = "integration.sendPostmarkEmail",
|
|
16
|
-
NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = "shopifySubscriptionCreated",
|
|
17
|
-
NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = "subscription.signupCompleted",
|
|
18
|
-
REQUEST_SET_ACCOUNT_OWNER = "setAccountOwner",
|
|
19
|
-
REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = "setAccountSubscriptionId"
|
|
20
|
-
}
|
|
1
|
+
export declare enum ADTRACKIFY_EVENT_TYPES {
|
|
2
|
+
NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = "shopifySubscriptionCreated",
|
|
3
|
+
NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = "subscription.signupCompleted",
|
|
4
|
+
REQUEST_SET_ACCOUNT_OWNER = "setAccountOwner",
|
|
5
|
+
REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = "setAccountSubscriptionId"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ADTRACKIFY_EVENT_SOURCES {
|
|
8
|
+
SUBSCRIPTIONS = "subscriptions"
|
|
9
|
+
}
|
|
10
|
+
export declare const enum PostmarkRequestType {
|
|
11
|
+
SINGLE_EMAIL = "single_email",
|
|
12
|
+
TEMPLATE_EMAIL = "template_email"
|
|
13
|
+
}
|
|
14
|
+
export declare enum ADTRACKIFY_EVENT_BRIDGE_EVENTS {
|
|
15
|
+
SEND_POSTMARK_EMAIL = "integration.sendPostmarkEmail",
|
|
16
|
+
NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = "shopifySubscriptionCreated",
|
|
17
|
+
NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = "subscription.signupCompleted",
|
|
18
|
+
REQUEST_SET_ACCOUNT_OWNER = "setAccountOwner",
|
|
19
|
+
REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = "setAccountSubscriptionId"
|
|
20
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export var ADTRACKIFY_EVENT_TYPES;
|
|
2
|
-
(function (ADTRACKIFY_EVENT_TYPES) {
|
|
3
|
-
ADTRACKIFY_EVENT_TYPES["NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED"] = "shopifySubscriptionCreated";
|
|
4
|
-
ADTRACKIFY_EVENT_TYPES["NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED"] = "subscription.signupCompleted";
|
|
5
|
-
ADTRACKIFY_EVENT_TYPES["REQUEST_SET_ACCOUNT_OWNER"] = "setAccountOwner";
|
|
6
|
-
ADTRACKIFY_EVENT_TYPES["REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID"] = "setAccountSubscriptionId";
|
|
7
|
-
})(ADTRACKIFY_EVENT_TYPES || (ADTRACKIFY_EVENT_TYPES = {}));
|
|
8
|
-
export var ADTRACKIFY_EVENT_SOURCES;
|
|
9
|
-
(function (ADTRACKIFY_EVENT_SOURCES) {
|
|
10
|
-
ADTRACKIFY_EVENT_SOURCES["SUBSCRIPTIONS"] = "subscriptions";
|
|
11
|
-
})(ADTRACKIFY_EVENT_SOURCES || (ADTRACKIFY_EVENT_SOURCES = {}));
|
|
12
|
-
export var PostmarkRequestType;
|
|
13
|
-
(function (PostmarkRequestType) {
|
|
14
|
-
PostmarkRequestType["SINGLE_EMAIL"] = "single_email";
|
|
15
|
-
PostmarkRequestType["TEMPLATE_EMAIL"] = "template_email";
|
|
16
|
-
})(PostmarkRequestType || (PostmarkRequestType = {}));
|
|
17
|
-
export var ADTRACKIFY_EVENT_BRIDGE_EVENTS;
|
|
18
|
-
(function (ADTRACKIFY_EVENT_BRIDGE_EVENTS) {
|
|
19
|
-
ADTRACKIFY_EVENT_BRIDGE_EVENTS["SEND_POSTMARK_EMAIL"] = "integration.sendPostmarkEmail";
|
|
20
|
-
ADTRACKIFY_EVENT_BRIDGE_EVENTS["NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED"] = "shopifySubscriptionCreated";
|
|
21
|
-
ADTRACKIFY_EVENT_BRIDGE_EVENTS["NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED"] = "subscription.signupCompleted";
|
|
22
|
-
ADTRACKIFY_EVENT_BRIDGE_EVENTS["REQUEST_SET_ACCOUNT_OWNER"] = "setAccountOwner";
|
|
23
|
-
ADTRACKIFY_EVENT_BRIDGE_EVENTS["REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID"] = "setAccountSubscriptionId";
|
|
24
|
-
})(ADTRACKIFY_EVENT_BRIDGE_EVENTS || (ADTRACKIFY_EVENT_BRIDGE_EVENTS = {}));
|
|
1
|
+
export var ADTRACKIFY_EVENT_TYPES;
|
|
2
|
+
(function (ADTRACKIFY_EVENT_TYPES) {
|
|
3
|
+
ADTRACKIFY_EVENT_TYPES["NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED"] = "shopifySubscriptionCreated";
|
|
4
|
+
ADTRACKIFY_EVENT_TYPES["NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED"] = "subscription.signupCompleted";
|
|
5
|
+
ADTRACKIFY_EVENT_TYPES["REQUEST_SET_ACCOUNT_OWNER"] = "setAccountOwner";
|
|
6
|
+
ADTRACKIFY_EVENT_TYPES["REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID"] = "setAccountSubscriptionId";
|
|
7
|
+
})(ADTRACKIFY_EVENT_TYPES || (ADTRACKIFY_EVENT_TYPES = {}));
|
|
8
|
+
export var ADTRACKIFY_EVENT_SOURCES;
|
|
9
|
+
(function (ADTRACKIFY_EVENT_SOURCES) {
|
|
10
|
+
ADTRACKIFY_EVENT_SOURCES["SUBSCRIPTIONS"] = "subscriptions";
|
|
11
|
+
})(ADTRACKIFY_EVENT_SOURCES || (ADTRACKIFY_EVENT_SOURCES = {}));
|
|
12
|
+
export var PostmarkRequestType;
|
|
13
|
+
(function (PostmarkRequestType) {
|
|
14
|
+
PostmarkRequestType["SINGLE_EMAIL"] = "single_email";
|
|
15
|
+
PostmarkRequestType["TEMPLATE_EMAIL"] = "template_email";
|
|
16
|
+
})(PostmarkRequestType || (PostmarkRequestType = {}));
|
|
17
|
+
export var ADTRACKIFY_EVENT_BRIDGE_EVENTS;
|
|
18
|
+
(function (ADTRACKIFY_EVENT_BRIDGE_EVENTS) {
|
|
19
|
+
ADTRACKIFY_EVENT_BRIDGE_EVENTS["SEND_POSTMARK_EMAIL"] = "integration.sendPostmarkEmail";
|
|
20
|
+
ADTRACKIFY_EVENT_BRIDGE_EVENTS["NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED"] = "shopifySubscriptionCreated";
|
|
21
|
+
ADTRACKIFY_EVENT_BRIDGE_EVENTS["NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED"] = "subscription.signupCompleted";
|
|
22
|
+
ADTRACKIFY_EVENT_BRIDGE_EVENTS["REQUEST_SET_ACCOUNT_OWNER"] = "setAccountOwner";
|
|
23
|
+
ADTRACKIFY_EVENT_BRIDGE_EVENTS["REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID"] = "setAccountSubscriptionId";
|
|
24
|
+
})(ADTRACKIFY_EVENT_BRIDGE_EVENTS || (ADTRACKIFY_EVENT_BRIDGE_EVENTS = {}));
|
|
25
25
|
//# sourceMappingURL=event-detail-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './event-detail-types.js';
|
|
1
|
+
export * from './event-detail-types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './event-detail-types.js';
|
|
1
|
+
export * from './event-detail-types.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|