modxdc 1.0.3 → 1.0.5

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 (33) hide show
  1. package/dist/model/enums/index.d.ts +33 -0
  2. package/dist/model/enums/index.d.ts.map +1 -1
  3. package/dist/model/enums/index.js +41 -1
  4. package/dist/model/enums/index.js.map +1 -1
  5. package/dist/model/index.d.ts +11 -2
  6. package/dist/model/index.d.ts.map +1 -1
  7. package/dist/model/index.js +32 -2
  8. package/dist/model/index.js.map +1 -1
  9. package/dist/model/payment-price.model.d.ts +31 -0
  10. package/dist/model/payment-price.model.d.ts.map +1 -0
  11. package/dist/model/payment-price.model.js +213 -0
  12. package/dist/model/payment-price.model.js.map +1 -0
  13. package/dist/model/payment-product.model.d.ts +35 -0
  14. package/dist/model/payment-product.model.d.ts.map +1 -0
  15. package/dist/model/payment-product.model.js +246 -0
  16. package/dist/model/payment-product.model.js.map +1 -0
  17. package/dist/model/payment.types.d.ts +38 -0
  18. package/dist/model/payment.types.d.ts.map +1 -0
  19. package/dist/model/payment.types.js +3 -0
  20. package/dist/model/payment.types.js.map +1 -0
  21. package/dist/model/transaction-transcript.model.d.ts +24 -0
  22. package/dist/model/transaction-transcript.model.d.ts.map +1 -0
  23. package/dist/model/transaction-transcript.model.js +155 -0
  24. package/dist/model/transaction-transcript.model.js.map +1 -0
  25. package/dist/model/transaction.model.d.ts +39 -0
  26. package/dist/model/transaction.model.d.ts.map +1 -0
  27. package/dist/model/transaction.model.js +274 -0
  28. package/dist/model/transaction.model.js.map +1 -0
  29. package/dist/model/workspace.model.d.ts +11 -3
  30. package/dist/model/workspace.model.d.ts.map +1 -1
  31. package/dist/model/workspace.model.js +27 -4
  32. package/dist/model/workspace.model.js.map +1 -1
  33. package/package.json +1 -1
@@ -35,4 +35,37 @@ export declare enum ApiKeyStatus {
35
35
  ACTIVE = "active",
36
36
  REVOKED = "revoked"
37
37
  }
38
+ export declare enum PaymentProductType {
39
+ FREE = "free",
40
+ SUBSCRIPTION = "subscription",
41
+ ONE_TIME = "one_time"
42
+ }
43
+ export declare enum PaymentProductStatus {
44
+ ACTIVE = "active",
45
+ INACTIVE = "inactive"
46
+ }
47
+ export declare enum PaymentPriceInterval {
48
+ MONTH = "month",
49
+ YEAR = "year"
50
+ }
51
+ export declare enum PaymentPriceStatus {
52
+ ACTIVE = "active",
53
+ INACTIVE = "inactive"
54
+ }
55
+ export declare enum TransactionStatus {
56
+ PENDING = "pending",
57
+ SUCCEEDED = "succeeded",
58
+ FAILED = "failed",
59
+ CANCELED = "canceled",
60
+ REFUNDED = "refunded"
61
+ }
62
+ export declare enum PaymentProvider {
63
+ STRIPE = "stripe"
64
+ }
65
+ export declare enum TransactionTranscriptStatus {
66
+ RECEIVED = "received",
67
+ PROCESSED = "processed",
68
+ IGNORED = "ignored",
69
+ FAILED = "failed"
70
+ }
38
71
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/model/enums/index.ts"],"names":[],"mappings":"AAQA,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAMD,oBAAY,oBAAoB;IAC9B,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,UAAU,eAAe;CAC1B;AAMD,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAMD,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,cAAc;IACxB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAMD,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/model/enums/index.ts"],"names":[],"mappings":"AAQA,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAMD,oBAAY,oBAAoB;IAC9B,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,UAAU,eAAe;CAC1B;AAMD,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAMD,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,cAAc;IACxB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAMD,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAMD,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;CACtB;AAED,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,kBAAkB;IAC5B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAMD,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,oBAAY,eAAe;IACzB,MAAM,WAAW;CAClB;AAED,oBAAY,2BAA2B;IACrC,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiKeyStatus = exports.WidgetPosition = exports.ThemeMode = exports.ThemePreset = exports.AgentStatus = exports.WorkspacePlan = exports.WorkspaceEnvironment = exports.UserStatus = void 0;
3
+ exports.TransactionTranscriptStatus = exports.PaymentProvider = exports.TransactionStatus = exports.PaymentPriceStatus = exports.PaymentPriceInterval = exports.PaymentProductStatus = exports.PaymentProductType = exports.ApiKeyStatus = exports.WidgetPosition = exports.ThemeMode = exports.ThemePreset = exports.AgentStatus = exports.WorkspacePlan = exports.WorkspaceEnvironment = exports.UserStatus = void 0;
4
4
  var UserStatus;
5
5
  (function (UserStatus) {
6
6
  UserStatus["ACTIVE"] = "active";
@@ -46,4 +46,44 @@ var ApiKeyStatus;
46
46
  ApiKeyStatus["ACTIVE"] = "active";
47
47
  ApiKeyStatus["REVOKED"] = "revoked";
48
48
  })(ApiKeyStatus || (exports.ApiKeyStatus = ApiKeyStatus = {}));
49
+ var PaymentProductType;
50
+ (function (PaymentProductType) {
51
+ PaymentProductType["FREE"] = "free";
52
+ PaymentProductType["SUBSCRIPTION"] = "subscription";
53
+ PaymentProductType["ONE_TIME"] = "one_time";
54
+ })(PaymentProductType || (exports.PaymentProductType = PaymentProductType = {}));
55
+ var PaymentProductStatus;
56
+ (function (PaymentProductStatus) {
57
+ PaymentProductStatus["ACTIVE"] = "active";
58
+ PaymentProductStatus["INACTIVE"] = "inactive";
59
+ })(PaymentProductStatus || (exports.PaymentProductStatus = PaymentProductStatus = {}));
60
+ var PaymentPriceInterval;
61
+ (function (PaymentPriceInterval) {
62
+ PaymentPriceInterval["MONTH"] = "month";
63
+ PaymentPriceInterval["YEAR"] = "year";
64
+ })(PaymentPriceInterval || (exports.PaymentPriceInterval = PaymentPriceInterval = {}));
65
+ var PaymentPriceStatus;
66
+ (function (PaymentPriceStatus) {
67
+ PaymentPriceStatus["ACTIVE"] = "active";
68
+ PaymentPriceStatus["INACTIVE"] = "inactive";
69
+ })(PaymentPriceStatus || (exports.PaymentPriceStatus = PaymentPriceStatus = {}));
70
+ var TransactionStatus;
71
+ (function (TransactionStatus) {
72
+ TransactionStatus["PENDING"] = "pending";
73
+ TransactionStatus["SUCCEEDED"] = "succeeded";
74
+ TransactionStatus["FAILED"] = "failed";
75
+ TransactionStatus["CANCELED"] = "canceled";
76
+ TransactionStatus["REFUNDED"] = "refunded";
77
+ })(TransactionStatus || (exports.TransactionStatus = TransactionStatus = {}));
78
+ var PaymentProvider;
79
+ (function (PaymentProvider) {
80
+ PaymentProvider["STRIPE"] = "stripe";
81
+ })(PaymentProvider || (exports.PaymentProvider = PaymentProvider = {}));
82
+ var TransactionTranscriptStatus;
83
+ (function (TransactionTranscriptStatus) {
84
+ TransactionTranscriptStatus["RECEIVED"] = "received";
85
+ TransactionTranscriptStatus["PROCESSED"] = "processed";
86
+ TransactionTranscriptStatus["IGNORED"] = "ignored";
87
+ TransactionTranscriptStatus["FAILED"] = "failed";
88
+ })(TransactionTranscriptStatus || (exports.TransactionTranscriptStatus = TransactionTranscriptStatus = {}));
49
89
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/enums/index.ts"],"names":[],"mappings":";;;AAQA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,qCAAuB,CAAA;AACzB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAMD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,iDAAyB,CAAA;IACzB,2CAAmB,CAAA;AACrB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,0CAAyB,CAAA;AAC3B,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAMD,IAAY,WAGX;AAHD,WAAY,WAAW;I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A;AACvB,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B;AAED,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,oCAAiB,CAAA;AACnB,CAAC,EAFW,eAAe,+BAAf,eAAe,QAE1B;AAED,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,oDAAqB,CAAA;IACrB,sDAAuB,CAAA;IACvB,kDAAmB,CAAA;IACnB,gDAAiB,CAAA;AACnB,CAAC,EALW,2BAA2B,2CAA3B,2BAA2B,QAKtC"}
@@ -1,15 +1,24 @@
1
- export { UserStatus, WorkspaceEnvironment, WorkspacePlan, AgentStatus, ThemePreset, ThemeMode, WidgetPosition, ApiKeyStatus, } from './enums';
1
+ export { UserStatus, WorkspaceEnvironment, WorkspacePlan, AgentStatus, ThemePreset, ThemeMode, WidgetPosition, ApiKeyStatus, PaymentProductType, PaymentProductStatus, PaymentPriceInterval, PaymentPriceStatus, TransactionStatus, PaymentProvider, TransactionTranscriptStatus, } from './enums';
2
2
  export { User } from './user.model';
3
3
  export { Workspace } from './workspace.model';
4
4
  export { ModelAi } from './model-ai.model';
5
5
  export { Agent } from './agent.model';
6
6
  export { Theme } from './theme.model';
7
7
  export { ApiKey, GeneratedApiKey } from './api-key.model';
8
+ export { PaymentProduct } from './payment-product.model';
9
+ export { PaymentPrice } from './payment-price.model';
10
+ export { Transaction } from './transaction.model';
11
+ export { TransactionTranscript } from './transaction-transcript.model';
12
+ export type { PaymentProductFeature, PaymentProductEntitlements, TransactionPricingSnapshot, } from './payment.types';
8
13
  import { User } from './user.model';
9
14
  import { Workspace } from './workspace.model';
10
15
  import { ModelAi } from './model-ai.model';
11
16
  import { Agent } from './agent.model';
12
17
  import { Theme } from './theme.model';
13
18
  import { ApiKey } from './api-key.model';
14
- export declare const models: (typeof ModelAi | typeof Agent | typeof Workspace | typeof User | typeof Theme | typeof ApiKey)[];
19
+ import { PaymentProduct } from './payment-product.model';
20
+ import { PaymentPrice } from './payment-price.model';
21
+ import { Transaction } from './transaction.model';
22
+ import { TransactionTranscript } from './transaction-transcript.model';
23
+ export declare const models: (typeof ModelAi | typeof Agent | typeof Workspace | typeof User | typeof Theme | typeof ApiKey | typeof PaymentPrice | typeof PaymentProduct | typeof TransactionTranscript | typeof Transaction)[];
15
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,WAAW,EACX,SAAS,EACT,cAAc,EACd,YAAY,GACb,MAAM,SAAS,CAAA;AAKhB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAKzD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,eAAO,MAAM,MAAM,mGAAmD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,WAAW,EACX,SAAS,EACT,cAAc,EACd,YAAY,EACZ,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,MAAM,MAAM,qMAWlB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.models = exports.ApiKey = exports.Theme = exports.Agent = exports.ModelAi = exports.Workspace = exports.User = exports.ApiKeyStatus = exports.WidgetPosition = exports.ThemeMode = exports.ThemePreset = exports.AgentStatus = exports.WorkspacePlan = exports.WorkspaceEnvironment = exports.UserStatus = void 0;
3
+ exports.models = exports.TransactionTranscript = exports.Transaction = exports.PaymentPrice = exports.PaymentProduct = exports.ApiKey = exports.Theme = exports.Agent = exports.ModelAi = exports.Workspace = exports.User = exports.TransactionTranscriptStatus = exports.PaymentProvider = exports.TransactionStatus = exports.PaymentPriceStatus = exports.PaymentPriceInterval = exports.PaymentProductStatus = exports.PaymentProductType = exports.ApiKeyStatus = exports.WidgetPosition = exports.ThemeMode = exports.ThemePreset = exports.AgentStatus = exports.WorkspacePlan = exports.WorkspaceEnvironment = exports.UserStatus = void 0;
4
4
  var enums_1 = require("./enums");
5
5
  Object.defineProperty(exports, "UserStatus", { enumerable: true, get: function () { return enums_1.UserStatus; } });
6
6
  Object.defineProperty(exports, "WorkspaceEnvironment", { enumerable: true, get: function () { return enums_1.WorkspaceEnvironment; } });
@@ -10,6 +10,13 @@ Object.defineProperty(exports, "ThemePreset", { enumerable: true, get: function
10
10
  Object.defineProperty(exports, "ThemeMode", { enumerable: true, get: function () { return enums_1.ThemeMode; } });
11
11
  Object.defineProperty(exports, "WidgetPosition", { enumerable: true, get: function () { return enums_1.WidgetPosition; } });
12
12
  Object.defineProperty(exports, "ApiKeyStatus", { enumerable: true, get: function () { return enums_1.ApiKeyStatus; } });
13
+ Object.defineProperty(exports, "PaymentProductType", { enumerable: true, get: function () { return enums_1.PaymentProductType; } });
14
+ Object.defineProperty(exports, "PaymentProductStatus", { enumerable: true, get: function () { return enums_1.PaymentProductStatus; } });
15
+ Object.defineProperty(exports, "PaymentPriceInterval", { enumerable: true, get: function () { return enums_1.PaymentPriceInterval; } });
16
+ Object.defineProperty(exports, "PaymentPriceStatus", { enumerable: true, get: function () { return enums_1.PaymentPriceStatus; } });
17
+ Object.defineProperty(exports, "TransactionStatus", { enumerable: true, get: function () { return enums_1.TransactionStatus; } });
18
+ Object.defineProperty(exports, "PaymentProvider", { enumerable: true, get: function () { return enums_1.PaymentProvider; } });
19
+ Object.defineProperty(exports, "TransactionTranscriptStatus", { enumerable: true, get: function () { return enums_1.TransactionTranscriptStatus; } });
13
20
  var user_model_1 = require("./user.model");
14
21
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_model_1.User; } });
15
22
  var workspace_model_1 = require("./workspace.model");
@@ -22,11 +29,34 @@ var theme_model_1 = require("./theme.model");
22
29
  Object.defineProperty(exports, "Theme", { enumerable: true, get: function () { return theme_model_1.Theme; } });
23
30
  var api_key_model_1 = require("./api-key.model");
24
31
  Object.defineProperty(exports, "ApiKey", { enumerable: true, get: function () { return api_key_model_1.ApiKey; } });
32
+ var payment_product_model_1 = require("./payment-product.model");
33
+ Object.defineProperty(exports, "PaymentProduct", { enumerable: true, get: function () { return payment_product_model_1.PaymentProduct; } });
34
+ var payment_price_model_1 = require("./payment-price.model");
35
+ Object.defineProperty(exports, "PaymentPrice", { enumerable: true, get: function () { return payment_price_model_1.PaymentPrice; } });
36
+ var transaction_model_1 = require("./transaction.model");
37
+ Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return transaction_model_1.Transaction; } });
38
+ var transaction_transcript_model_1 = require("./transaction-transcript.model");
39
+ Object.defineProperty(exports, "TransactionTranscript", { enumerable: true, get: function () { return transaction_transcript_model_1.TransactionTranscript; } });
25
40
  const user_model_2 = require("./user.model");
26
41
  const workspace_model_2 = require("./workspace.model");
27
42
  const model_ai_model_2 = require("./model-ai.model");
28
43
  const agent_model_2 = require("./agent.model");
29
44
  const theme_model_2 = require("./theme.model");
30
45
  const api_key_model_2 = require("./api-key.model");
31
- exports.models = [user_model_2.User, workspace_model_2.Workspace, model_ai_model_2.ModelAi, agent_model_2.Agent, theme_model_2.Theme, api_key_model_2.ApiKey];
46
+ const payment_product_model_2 = require("./payment-product.model");
47
+ const payment_price_model_2 = require("./payment-price.model");
48
+ const transaction_model_2 = require("./transaction.model");
49
+ const transaction_transcript_model_2 = require("./transaction-transcript.model");
50
+ exports.models = [
51
+ user_model_2.User,
52
+ workspace_model_2.Workspace,
53
+ model_ai_model_2.ModelAi,
54
+ agent_model_2.Agent,
55
+ theme_model_2.Theme,
56
+ api_key_model_2.ApiKey,
57
+ payment_product_model_2.PaymentProduct,
58
+ payment_price_model_2.PaymentPrice,
59
+ transaction_model_2.Transaction,
60
+ transaction_transcript_model_2.TransactionTranscript,
61
+ ];
32
62
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;AAGA,iCASgB;AARd,mGAAA,UAAU,OAAA;AACV,6GAAA,oBAAoB,OAAA;AACpB,sGAAA,aAAa,OAAA;AACb,oGAAA,WAAW,OAAA;AACX,oGAAA,WAAW,OAAA;AACX,kGAAA,SAAS,OAAA;AACT,uGAAA,cAAc,OAAA;AACd,qGAAA,YAAY,OAAA;AAMd,2CAAmC;AAA1B,kGAAA,IAAI,OAAA;AACb,qDAA6C;AAApC,4GAAA,SAAS,OAAA;AAClB,mDAA0C;AAAjC,yGAAA,OAAO,OAAA;AAChB,6CAAqC;AAA5B,oGAAA,KAAK,OAAA;AACd,6CAAqC;AAA5B,oGAAA,KAAK,OAAA;AACd,iDAAyD;AAAhD,uGAAA,MAAM,OAAA;AAKf,6CAAmC;AACnC,uDAA6C;AAC7C,qDAA0C;AAC1C,+CAAqC;AACrC,+CAAqC;AACrC,mDAAwC;AAE3B,QAAA,MAAM,GAAG,CAAC,iBAAI,EAAE,2BAAS,EAAE,wBAAO,EAAE,mBAAK,EAAE,mBAAK,EAAE,sBAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;AAGA,iCAgBgB;AAfd,mGAAA,UAAU,OAAA;AACV,6GAAA,oBAAoB,OAAA;AACpB,sGAAA,aAAa,OAAA;AACb,oGAAA,WAAW,OAAA;AACX,oGAAA,WAAW,OAAA;AACX,kGAAA,SAAS,OAAA;AACT,uGAAA,cAAc,OAAA;AACd,qGAAA,YAAY,OAAA;AACZ,2GAAA,kBAAkB,OAAA;AAClB,6GAAA,oBAAoB,OAAA;AACpB,6GAAA,oBAAoB,OAAA;AACpB,2GAAA,kBAAkB,OAAA;AAClB,0GAAA,iBAAiB,OAAA;AACjB,wGAAA,eAAe,OAAA;AACf,oHAAA,2BAA2B,OAAA;AAM7B,2CAAmC;AAA1B,kGAAA,IAAI,OAAA;AACb,qDAA6C;AAApC,4GAAA,SAAS,OAAA;AAClB,mDAA0C;AAAjC,yGAAA,OAAO,OAAA;AAChB,6CAAqC;AAA5B,oGAAA,KAAK,OAAA;AACd,6CAAqC;AAA5B,oGAAA,KAAK,OAAA;AACd,iDAAyD;AAAhD,uGAAA,MAAM,OAAA;AACf,iEAAwD;AAA/C,uHAAA,cAAc,OAAA;AACvB,6DAAoD;AAA3C,mHAAA,YAAY,OAAA;AACrB,yDAAiD;AAAxC,gHAAA,WAAW,OAAA;AACpB,+EAAsE;AAA7D,qIAAA,qBAAqB,OAAA;AAU9B,6CAAmC;AACnC,uDAA6C;AAC7C,qDAA0C;AAC1C,+CAAqC;AACrC,+CAAqC;AACrC,mDAAwC;AACxC,mEAAwD;AACxD,+DAAoD;AACpD,2DAAiD;AACjD,iFAAsE;AAEzD,QAAA,MAAM,GAAG;IACpB,iBAAI;IACJ,2BAAS;IACT,wBAAO;IACP,mBAAK;IACL,mBAAK;IACL,sBAAM;IACN,sCAAc;IACd,kCAAY;IACZ,+BAAW;IACX,oDAAqB;CACtB,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { Model } from 'sequelize-typescript';
2
+ import { PaymentPriceInterval, PaymentPriceStatus } from './enums';
3
+ import { Workspace } from './workspace.model';
4
+ import { PaymentProduct } from './payment-product.model';
5
+ import type { Transaction } from './transaction.model';
6
+ export declare class PaymentPrice extends Model<PaymentPrice> {
7
+ id: string;
8
+ workspaceId: string;
9
+ paymentProductId: string;
10
+ code: string;
11
+ name?: string;
12
+ currency: string;
13
+ unitAmountCents: number;
14
+ billingInterval?: PaymentPriceInterval;
15
+ intervalCount: number;
16
+ billingNote?: string;
17
+ isDefault: boolean;
18
+ status: PaymentPriceStatus;
19
+ isActive: boolean;
20
+ stripePriceId?: string;
21
+ stripeLookupKey?: string;
22
+ metadata?: Record<string, unknown>;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ deletedAt?: Date;
26
+ workspace?: Workspace;
27
+ paymentProduct?: PaymentProduct;
28
+ transactions?: Transaction[];
29
+ }
30
+ export default PaymentPrice;
31
+ //# sourceMappingURL=payment-price.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-price.model.d.ts","sourceRoot":"","sources":["../../src/model/payment-price.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAWN,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAGxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAStD,qBA6Ba,YAAa,SAAQ,KAAK,CAAC,YAAY,CAAC;IAInD,EAAE,EAAG,MAAM,CAAA;IAQX,WAAW,EAAG,MAAM,CAAA;IAQpB,gBAAgB,EAAG,MAAM,CAAA;IAQzB,IAAI,EAAG,MAAM,CAAA;IAOb,IAAI,CAAC,EAAE,MAAM,CAAA;IAOb,QAAQ,EAAG,MAAM,CAAA;IAQjB,eAAe,EAAG,MAAM,CAAA;IAOxB,eAAe,CAAC,EAAE,oBAAoB,CAAA;IAStC,aAAa,EAAG,MAAM,CAAA;IAQtB,WAAW,CAAC,EAAE,MAAM,CAAA;IASpB,SAAS,EAAG,OAAO,CAAA;IAOnB,MAAM,EAAG,kBAAkB,CAAA;IAQ3B,QAAQ,EAAG,OAAO,CAAA;IAOlB,aAAa,CAAC,EAAE,MAAM,CAAA;IAOtB,eAAe,CAAC,EAAE,MAAM,CAAA;IAMxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAIlC,SAAS,EAAG,IAAI,CAAA;IAIhB,SAAS,EAAG,IAAI,CAAA;IAIhB,SAAS,CAAC,EAAE,IAAI,CAAA;IAOhB,SAAS,CAAC,EAAE,SAAS,CAAA;IAGrB,cAAc,CAAC,EAAE,cAAc,CAAA;IAM/B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PaymentPrice = void 0;
13
+ const sequelize_typescript_1 = require("sequelize-typescript");
14
+ const enums_1 = require("./enums");
15
+ const workspace_model_1 = require("./workspace.model");
16
+ const payment_product_model_1 = require("./payment-product.model");
17
+ let PaymentPrice = class PaymentPrice extends sequelize_typescript_1.Model {
18
+ };
19
+ exports.PaymentPrice = PaymentPrice;
20
+ __decorate([
21
+ sequelize_typescript_1.PrimaryKey,
22
+ (0, sequelize_typescript_1.Default)(sequelize_typescript_1.DataType.UUIDV4),
23
+ (0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.UUID),
24
+ __metadata("design:type", String)
25
+ ], PaymentPrice.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, sequelize_typescript_1.ForeignKey)(() => workspace_model_1.Workspace),
28
+ (0, sequelize_typescript_1.AllowNull)(true),
29
+ (0, sequelize_typescript_1.Column)({
30
+ type: sequelize_typescript_1.DataType.UUID,
31
+ field: 'workspace_id',
32
+ }),
33
+ __metadata("design:type", String)
34
+ ], PaymentPrice.prototype, "workspaceId", void 0);
35
+ __decorate([
36
+ (0, sequelize_typescript_1.ForeignKey)(() => payment_product_model_1.PaymentProduct),
37
+ (0, sequelize_typescript_1.AllowNull)(true),
38
+ (0, sequelize_typescript_1.Column)({
39
+ type: sequelize_typescript_1.DataType.UUID,
40
+ field: 'payment_product_id',
41
+ }),
42
+ __metadata("design:type", String)
43
+ ], PaymentPrice.prototype, "paymentProductId", void 0);
44
+ __decorate([
45
+ (0, sequelize_typescript_1.AllowNull)(true),
46
+ (0, sequelize_typescript_1.Column)({
47
+ type: sequelize_typescript_1.DataType.STRING(100),
48
+ comment: 'Stable internal identifier, e.g. free_usd, standard_monthly_usd, pro_yearly_eur',
49
+ }),
50
+ __metadata("design:type", String)
51
+ ], PaymentPrice.prototype, "code", void 0);
52
+ __decorate([
53
+ (0, sequelize_typescript_1.AllowNull)(true),
54
+ (0, sequelize_typescript_1.Column)({
55
+ type: sequelize_typescript_1.DataType.STRING(255),
56
+ comment: 'Admin-facing label for this specific Stripe price',
57
+ }),
58
+ __metadata("design:type", String)
59
+ ], PaymentPrice.prototype, "name", void 0);
60
+ __decorate([
61
+ (0, sequelize_typescript_1.AllowNull)(true),
62
+ (0, sequelize_typescript_1.Default)('usd'),
63
+ (0, sequelize_typescript_1.Column)({
64
+ type: sequelize_typescript_1.DataType.STRING(3),
65
+ }),
66
+ __metadata("design:type", String)
67
+ ], PaymentPrice.prototype, "currency", void 0);
68
+ __decorate([
69
+ (0, sequelize_typescript_1.AllowNull)(true),
70
+ (0, sequelize_typescript_1.Column)({
71
+ type: sequelize_typescript_1.DataType.INTEGER,
72
+ field: 'unit_amount_cents',
73
+ comment: 'Charge amount in the smallest currency unit',
74
+ }),
75
+ __metadata("design:type", Number)
76
+ ], PaymentPrice.prototype, "unitAmountCents", void 0);
77
+ __decorate([
78
+ (0, sequelize_typescript_1.AllowNull)(true),
79
+ (0, sequelize_typescript_1.Column)({
80
+ type: sequelize_typescript_1.DataType.ENUM(...Object.values(enums_1.PaymentPriceInterval)),
81
+ field: 'billing_interval',
82
+ }),
83
+ __metadata("design:type", String)
84
+ ], PaymentPrice.prototype, "billingInterval", void 0);
85
+ __decorate([
86
+ (0, sequelize_typescript_1.AllowNull)(true),
87
+ (0, sequelize_typescript_1.Default)(1),
88
+ (0, sequelize_typescript_1.Column)({
89
+ type: sequelize_typescript_1.DataType.INTEGER,
90
+ field: 'interval_count',
91
+ comment: 'Usually 1 for monthly/yearly Stripe prices',
92
+ }),
93
+ __metadata("design:type", Number)
94
+ ], PaymentPrice.prototype, "intervalCount", void 0);
95
+ __decorate([
96
+ (0, sequelize_typescript_1.AllowNull)(true),
97
+ (0, sequelize_typescript_1.Column)({
98
+ type: sequelize_typescript_1.DataType.TEXT,
99
+ field: 'billing_note',
100
+ comment: 'UI copy such as billed annually',
101
+ }),
102
+ __metadata("design:type", String)
103
+ ], PaymentPrice.prototype, "billingNote", void 0);
104
+ __decorate([
105
+ (0, sequelize_typescript_1.AllowNull)(true),
106
+ (0, sequelize_typescript_1.Default)(false),
107
+ (0, sequelize_typescript_1.Column)({
108
+ type: sequelize_typescript_1.DataType.BOOLEAN,
109
+ field: 'is_default',
110
+ comment: 'Preferred default price for checkout selection',
111
+ }),
112
+ __metadata("design:type", Boolean)
113
+ ], PaymentPrice.prototype, "isDefault", void 0);
114
+ __decorate([
115
+ (0, sequelize_typescript_1.AllowNull)(true),
116
+ (0, sequelize_typescript_1.Default)(enums_1.PaymentPriceStatus.ACTIVE),
117
+ (0, sequelize_typescript_1.Column)({
118
+ type: sequelize_typescript_1.DataType.ENUM(...Object.values(enums_1.PaymentPriceStatus)),
119
+ }),
120
+ __metadata("design:type", String)
121
+ ], PaymentPrice.prototype, "status", void 0);
122
+ __decorate([
123
+ (0, sequelize_typescript_1.AllowNull)(true),
124
+ (0, sequelize_typescript_1.Default)(true),
125
+ (0, sequelize_typescript_1.Column)({
126
+ type: sequelize_typescript_1.DataType.BOOLEAN,
127
+ field: 'is_active',
128
+ }),
129
+ __metadata("design:type", Boolean)
130
+ ], PaymentPrice.prototype, "isActive", void 0);
131
+ __decorate([
132
+ (0, sequelize_typescript_1.AllowNull)(true),
133
+ (0, sequelize_typescript_1.Column)({
134
+ type: sequelize_typescript_1.DataType.STRING(255),
135
+ field: 'stripe_price_id',
136
+ }),
137
+ __metadata("design:type", String)
138
+ ], PaymentPrice.prototype, "stripePriceId", void 0);
139
+ __decorate([
140
+ (0, sequelize_typescript_1.AllowNull)(true),
141
+ (0, sequelize_typescript_1.Column)({
142
+ type: sequelize_typescript_1.DataType.STRING(255),
143
+ field: 'stripe_lookup_key',
144
+ }),
145
+ __metadata("design:type", String)
146
+ ], PaymentPrice.prototype, "stripeLookupKey", void 0);
147
+ __decorate([
148
+ (0, sequelize_typescript_1.AllowNull)(true),
149
+ (0, sequelize_typescript_1.Column)({
150
+ type: sequelize_typescript_1.DataType.JSONB,
151
+ }),
152
+ __metadata("design:type", Object)
153
+ ], PaymentPrice.prototype, "metadata", void 0);
154
+ __decorate([
155
+ sequelize_typescript_1.CreatedAt,
156
+ (0, sequelize_typescript_1.Column)({ field: 'created_at' }),
157
+ __metadata("design:type", Date)
158
+ ], PaymentPrice.prototype, "createdAt", void 0);
159
+ __decorate([
160
+ sequelize_typescript_1.UpdatedAt,
161
+ (0, sequelize_typescript_1.Column)({ field: 'updated_at' }),
162
+ __metadata("design:type", Date)
163
+ ], PaymentPrice.prototype, "updatedAt", void 0);
164
+ __decorate([
165
+ sequelize_typescript_1.DeletedAt,
166
+ (0, sequelize_typescript_1.Column)({ field: 'deleted_at' }),
167
+ __metadata("design:type", Date)
168
+ ], PaymentPrice.prototype, "deletedAt", void 0);
169
+ __decorate([
170
+ (0, sequelize_typescript_1.BelongsTo)(() => workspace_model_1.Workspace, 'workspaceId'),
171
+ __metadata("design:type", workspace_model_1.Workspace)
172
+ ], PaymentPrice.prototype, "workspace", void 0);
173
+ __decorate([
174
+ (0, sequelize_typescript_1.BelongsTo)(() => payment_product_model_1.PaymentProduct, 'paymentProductId'),
175
+ __metadata("design:type", payment_product_model_1.PaymentProduct)
176
+ ], PaymentPrice.prototype, "paymentProduct", void 0);
177
+ __decorate([
178
+ (0, sequelize_typescript_1.HasMany)(() => require('./transaction.model').Transaction, 'paymentPriceId'),
179
+ __metadata("design:type", Array)
180
+ ], PaymentPrice.prototype, "transactions", void 0);
181
+ exports.PaymentPrice = PaymentPrice = __decorate([
182
+ (0, sequelize_typescript_1.Table)({
183
+ tableName: 'payment_prices',
184
+ paranoid: true,
185
+ timestamps: true,
186
+ indexes: [
187
+ {
188
+ name: 'payment_prices_workspace_id_idx',
189
+ fields: ['workspace_id'],
190
+ },
191
+ {
192
+ name: 'payment_prices_payment_product_id_idx',
193
+ fields: ['payment_product_id'],
194
+ },
195
+ {
196
+ name: 'payment_prices_workspace_code_unique',
197
+ unique: true,
198
+ fields: ['workspace_id', { name: 'code' }],
199
+ },
200
+ {
201
+ name: 'payment_prices_product_currency_interval_idx',
202
+ fields: ['payment_product_id', 'currency', 'billing_interval'],
203
+ },
204
+ {
205
+ name: 'payment_prices_stripe_price_id_unique',
206
+ unique: true,
207
+ fields: ['stripe_price_id'],
208
+ },
209
+ ],
210
+ })
211
+ ], PaymentPrice);
212
+ exports.default = PaymentPrice;
213
+ //# sourceMappingURL=payment-price.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-price.model.js","sourceRoot":"","sources":["../../src/model/payment-price.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAc6B;AAC7B,mCAAkE;AAClE,uDAA6C;AAC7C,mEAAwD;AAyCjD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAmB;CAmJpD,CAAA;AAnJY,oCAAY;AAIvB;IAHC,iCAAU;IACV,IAAA,8BAAO,EAAC,+BAAQ,CAAC,MAAM,CAAC;IACxB,IAAA,6BAAM,EAAC,+BAAQ,CAAC,IAAI,CAAC;;wCACX;AAQX;IANC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,2BAAS,CAAC;IAC3B,IAAA,gCAAS,EAAC,IAAI,CAAC;IACf,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,KAAK,EAAE,cAAc;KACtB,CAAC;;iDACkB;AAQpB;IANC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sCAAc,CAAC;IAChC,IAAA,gCAAS,EAAC,IAAI,CAAC;IACf,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,KAAK,EAAE,oBAAoB;KAC5B,CAAC;;sDACuB;AAQzB;IANC,IAAA,gCAAS,EAAC,IAAI,CAAC;IACf,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;QAC1B,OAAO,EACL,iFAAiF;KACpF,CAAC;;0CACW;AAOb;IALC,IAAA,gCAAS,EAAC,IAAI,CAAC;IACf,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;QAC1B,OAAO,EAAE,mDAAmD;KAC7D,CAAC;;0CACW;AAOb;IALC,IAAA,gCAAS,EAAC,IAAI,CAAC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CAAC,sCAAc,EAAE,kBAAkB,CAAC;8BACnC,sCAAc;oDAAA;AAM/B;IAJC,IAAA,8BAAO,EACN,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,WAAW,EAChD,gBAAgB,CACjB;;kDAC2B;uBAlJjB,YAAY;IA7BxB,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,gBAAgB;QAC3B,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,iCAAiC;gBACvC,MAAM,EAAE,CAAC,cAAc,CAAC;aACzB;YACD;gBACE,IAAI,EAAE,uCAAuC;gBAC7C,MAAM,EAAE,CAAC,oBAAoB,CAAC;aAC/B;YACD;gBACE,IAAI,EAAE,sCAAsC;gBAC5C,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;aAC3C;YACD;gBACE,IAAI,EAAE,8CAA8C;gBACpD,MAAM,EAAE,CAAC,oBAAoB,EAAE,UAAU,EAAE,kBAAkB,CAAC;aAC/D;YACD;gBACE,IAAI,EAAE,uCAAuC;gBAC7C,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE,CAAC,iBAAiB,CAAC;aAC5B;SACF;KACF,CAAC;GACW,YAAY,CAmJxB;AAED,kBAAe,YAAY,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { Model } from 'sequelize-typescript';
2
+ import { PaymentProductType, PaymentProductStatus } from './enums';
3
+ import { Workspace } from './workspace.model';
4
+ import type { PaymentProductEntitlements, PaymentProductFeature } from './payment.types';
5
+ import { Transaction } from './transaction.model';
6
+ import type { PaymentPrice } from './payment-price.model';
7
+ export declare class PaymentProduct extends Model<PaymentProduct> {
8
+ id: string;
9
+ workspaceId: string;
10
+ code: string;
11
+ name: string;
12
+ description?: string;
13
+ type: PaymentProductType;
14
+ amountCents: number;
15
+ currency: string;
16
+ features?: PaymentProductFeature[];
17
+ featureSummary?: string;
18
+ entitlements?: PaymentProductEntitlements;
19
+ ctaLabel?: string;
20
+ highlightLabel?: string;
21
+ isHighlighted: boolean;
22
+ sortOrder: number;
23
+ status: PaymentProductStatus;
24
+ isActive: boolean;
25
+ stripeProductId?: string;
26
+ stripePriceId?: string;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ deletedAt?: Date;
30
+ workspace?: Workspace;
31
+ transactions?: Transaction[];
32
+ prices?: PaymentPrice[];
33
+ }
34
+ export default PaymentProduct;
35
+ //# sourceMappingURL=payment-product.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-product.model.d.ts","sourceRoot":"","sources":["../../src/model/payment-product.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAWN,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AASzD,qBAsCa,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC;IAIvD,EAAE,EAAG,MAAM,CAAA;IAQX,WAAW,EAAG,MAAM,CAAA;IAMpB,IAAI,EAAG,MAAM,CAAA;IAMb,IAAI,EAAG,MAAM,CAAA;IAMb,WAAW,CAAC,EAAE,MAAM,CAAA;IAOpB,IAAI,EAAG,kBAAkB,CAAA;IAQzB,WAAW,EAAG,MAAM,CAAA;IAQpB,QAAQ,EAAG,MAAM,CAAA;IAQjB,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAA;IAQlC,cAAc,CAAC,EAAE,MAAM,CAAA;IAOvB,YAAY,CAAC,EAAE,0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