@adtrackify/at-service-common 1.1.18 → 1.1.20

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.
Files changed (38) hide show
  1. package/.editorconfig +12 -12
  2. package/.eslintignore +3 -0
  3. package/.vscode/settings.json +9 -9
  4. package/build.js +27 -10
  5. package/dist/index.d.ts +57 -54
  6. package/dist/index.esm.js +1335 -0
  7. package/dist/index.esm.js.map +7 -0
  8. package/dist/index.js +357 -234
  9. package/dist/index.js.map +4 -4
  10. package/jest.config.ts +40 -40
  11. package/package.json +27 -27
  12. package/src/__tests__/helpers/subscription-helper.spec.ts +1 -1
  13. package/src/clients/generic/axios.d.ts +7 -7
  14. package/src/clients/generic/cognito-client.ts +37 -36
  15. package/src/clients/generic/eventbridge-client.ts +1 -1
  16. package/src/clients/generic/http-client.ts +2 -3
  17. package/src/clients/generic/index.ts +5 -5
  18. package/src/clients/generic/s3-client.ts +5 -9
  19. package/src/clients/index.ts +3 -3
  20. package/src/clients/internal-api/accounts-client.ts +2 -2
  21. package/src/clients/internal-api/destinations-client.ts +2 -2
  22. package/src/clients/internal-api/index.ts +4 -4
  23. package/src/clients/internal-api/shopify-app-install-client.ts +4 -4
  24. package/src/clients/internal-api/users-auth-client.ts +4 -3
  25. package/src/clients/third-party/index.ts +1 -1
  26. package/src/clients/third-party/shopify-client.ts +1 -1
  27. package/src/helpers/index.ts +5 -5
  28. package/src/helpers/input-validation-helper.ts +1 -1
  29. package/src/helpers/shopify-helper.ts +2 -2
  30. package/src/index.ts +5 -5
  31. package/src/libs/index.ts +6 -6
  32. package/src/libs/url.ts +9 -9
  33. package/src/services/eventbridge-integration-service.ts +1 -1
  34. package/src/services/index.ts +1 -1
  35. package/src/types/index.ts +1 -1
  36. package/src/types/internal-events/event-detail-types.ts +9 -9
  37. package/src/types/internal-events/index.ts +1 -1
  38. package/tsconfig.json +2 -3
@@ -1,10 +1,10 @@
1
- export 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
-
8
- export enum ADTRACKIFY_EVENT_SOURCES {
9
- SUBSCRIPTIONS = 'subscriptions',
1
+ export 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
+
8
+ export enum ADTRACKIFY_EVENT_SOURCES {
9
+ SUBSCRIPTIONS = 'subscriptions',
10
10
  }
@@ -1 +1 @@
1
- export * from './event-detail-types';
1
+ export * from './event-detail-types.js';
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
4
4
  "module": "esnext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
5
-
5
+ "moduleResolution": "nodenext",
6
6
  "allowJs": false, /* Allow javascript files to be compiled. */
7
7
  "checkJs": false /* Report errors in .js files. */,
8
8
  "outDir": "dist", /* Redirect output to the directory. */
@@ -15,7 +15,6 @@
15
15
  "experimentalDecorators": true,
16
16
  "sourceMap": true,
17
17
  "declaration": true,
18
- "moduleResolution": "node",
19
18
  "resolveJsonModule": true,
20
19
  "isolatedModules": true,
21
20
  "removeComments": true,
@@ -28,7 +27,7 @@
28
27
  ]
29
28
  },
30
29
  "include": [
31
- "./src"
30
+ "./src/**/*.ts"
32
31
  ],
33
32
  "exclude": [
34
33
  "node_modules"