@adtrackify/at-tracking-event-types 3.5.1 → 3.5.2

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.
@@ -6,6 +6,7 @@ export * from './destinations/third-party-destination-configs.js';
6
6
  export * from './destinations/third-party-integration-configs.js';
7
7
  export * from './shopify-app-install.js';
8
8
  export * from './subscription.js';
9
+ export * from './promotion-code.js';
9
10
  export * from './user.js';
10
11
  export * from './query.js';
11
12
  export * from './event-status.js';
@@ -22,6 +22,7 @@ __exportStar(require("./destinations/third-party-destination-configs.js"), expor
22
22
  __exportStar(require("./destinations/third-party-integration-configs.js"), exports);
23
23
  __exportStar(require("./shopify-app-install.js"), exports);
24
24
  __exportStar(require("./subscription.js"), exports);
25
+ __exportStar(require("./promotion-code.js"), exports);
25
26
  __exportStar(require("./user.js"), exports);
26
27
  __exportStar(require("./query.js"), exports);
27
28
  __exportStar(require("./event-status.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iEAA+C;AAC/C,wEAAsD;AACtD,4FAA0E;AAC1E,oFAAkE;AAClE,oFAAkE;AAClE,2DAAyC;AACzC,oDAAkC;AAClC,4CAA0B;AAC1B,6CAA2B;AAC3B,oDAAkC;AAClC,kDAAgC;AAChC,uDAAqC;AACrC,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,0DAAwC;AACxC,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iEAA+C;AAC/C,wEAAsD;AACtD,4FAA0E;AAC1E,oFAAkE;AAClE,oFAAkE;AAClE,2DAAyC;AACzC,oDAAkC;AAClC,sDAAoC;AACpC,4CAA0B;AAC1B,6CAA2B;AAC3B,oDAAkC;AAClC,kDAAgC;AAChC,uDAAqC;AACrC,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,0DAAwC;AACxC,iEAA+C"}
@@ -0,0 +1,35 @@
1
+ import { Subscription } from './subscription.js';
2
+ export declare enum PROMOTION_CODE_DURATION {
3
+ FOREVER = "forever",
4
+ ONCE = "once",
5
+ REPEATING = "repeating"
6
+ }
7
+ export interface PromotionCodeDetails {
8
+ id: string;
9
+ code: string;
10
+ percentOff?: number;
11
+ amountOff?: number;
12
+ currency?: string;
13
+ duration: PROMOTION_CODE_DURATION;
14
+ durationInMonths?: number;
15
+ maxRedemptions?: number;
16
+ timesRedeemed?: number;
17
+ expiresAt?: string;
18
+ }
19
+ export interface PromotionCodePreview {
20
+ currentAmount: number;
21
+ discountedAmount: number;
22
+ discountAmount: number;
23
+ currency: string;
24
+ nextBillingDate?: string;
25
+ }
26
+ export interface ValidatePromotionCodeResponse {
27
+ valid: boolean;
28
+ promotionCode?: PromotionCodeDetails;
29
+ preview?: PromotionCodePreview;
30
+ message?: string;
31
+ }
32
+ export interface ApplyPromotionCodeResponse {
33
+ message: string;
34
+ subscription: Subscription;
35
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PROMOTION_CODE_DURATION = void 0;
4
+ var PROMOTION_CODE_DURATION;
5
+ (function (PROMOTION_CODE_DURATION) {
6
+ PROMOTION_CODE_DURATION["FOREVER"] = "forever";
7
+ PROMOTION_CODE_DURATION["ONCE"] = "once";
8
+ PROMOTION_CODE_DURATION["REPEATING"] = "repeating";
9
+ })(PROMOTION_CODE_DURATION = exports.PROMOTION_CODE_DURATION || (exports.PROMOTION_CODE_DURATION = {}));
10
+ //# sourceMappingURL=promotion-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotion-code.js","sourceRoot":"","sources":["../../../../src/types/api/promotion-code.ts"],"names":[],"mappings":";;;AAMA,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,wCAAa,CAAA;IACb,kDAAuB,CAAA;AACzB,CAAC,EAJW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAIlC"}
@@ -6,6 +6,7 @@ export * from './destinations/third-party-destination-configs.js';
6
6
  export * from './destinations/third-party-integration-configs.js';
7
7
  export * from './shopify-app-install.js';
8
8
  export * from './subscription.js';
9
+ export * from './promotion-code.js';
9
10
  export * from './user.js';
10
11
  export * from './query.js';
11
12
  export * from './event-status.js';
@@ -6,6 +6,7 @@ export * from './destinations/third-party-destination-configs.js';
6
6
  export * from './destinations/third-party-integration-configs.js';
7
7
  export * from './shopify-app-install.js';
8
8
  export * from './subscription.js';
9
+ export * from './promotion-code.js';
9
10
  export * from './user.js';
10
11
  export * from './query.js';
11
12
  export * from './event-status.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,2DAA2D,CAAC;AAC1E,cAAc,mDAAmD,CAAC;AAClE,cAAc,mDAAmD,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,2DAA2D,CAAC;AAC1E,cAAc,mDAAmD,CAAC;AAClE,cAAc,mDAAmD,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { Subscription } from './subscription.js';
2
+ export declare enum PROMOTION_CODE_DURATION {
3
+ FOREVER = "forever",
4
+ ONCE = "once",
5
+ REPEATING = "repeating"
6
+ }
7
+ export interface PromotionCodeDetails {
8
+ id: string;
9
+ code: string;
10
+ percentOff?: number;
11
+ amountOff?: number;
12
+ currency?: string;
13
+ duration: PROMOTION_CODE_DURATION;
14
+ durationInMonths?: number;
15
+ maxRedemptions?: number;
16
+ timesRedeemed?: number;
17
+ expiresAt?: string;
18
+ }
19
+ export interface PromotionCodePreview {
20
+ currentAmount: number;
21
+ discountedAmount: number;
22
+ discountAmount: number;
23
+ currency: string;
24
+ nextBillingDate?: string;
25
+ }
26
+ export interface ValidatePromotionCodeResponse {
27
+ valid: boolean;
28
+ promotionCode?: PromotionCodeDetails;
29
+ preview?: PromotionCodePreview;
30
+ message?: string;
31
+ }
32
+ export interface ApplyPromotionCodeResponse {
33
+ message: string;
34
+ subscription: Subscription;
35
+ }
@@ -0,0 +1,7 @@
1
+ export var PROMOTION_CODE_DURATION;
2
+ (function (PROMOTION_CODE_DURATION) {
3
+ PROMOTION_CODE_DURATION["FOREVER"] = "forever";
4
+ PROMOTION_CODE_DURATION["ONCE"] = "once";
5
+ PROMOTION_CODE_DURATION["REPEATING"] = "repeating";
6
+ })(PROMOTION_CODE_DURATION || (PROMOTION_CODE_DURATION = {}));
7
+ //# sourceMappingURL=promotion-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotion-code.js","sourceRoot":"","sources":["../../../../src/types/api/promotion-code.ts"],"names":[],"mappings":"AAMA,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,wCAAa,CAAA;IACb,kDAAuB,CAAA;AACzB,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-tracking-event-types",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist/*"