@aiminaabeejs/link-modules 0.0.17 → 0.0.19

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.
@@ -12,6 +12,7 @@ export * from "./product-variant-inventory-item";
12
12
  export * from "./product-variant-price-set";
13
13
  export * from "./publishable-api-key-sales-channel";
14
14
  export * from "./region-payment-provider";
15
+ export * from "./region-fulfillment-provider";
15
16
  export * from "./sales-channel-location";
16
17
  export * from "./shipping-option-price-set";
17
18
  export * from "./product-shipping-profile";
@@ -22,6 +23,7 @@ export * from "./store-customer";
22
23
  export * from "./store-product";
23
24
  export * from "./store-region";
24
25
  export * from "./store-sales-channel";
26
+ export * from "./store-tax-region";
25
27
  export * from "./store-shipping-profile";
26
28
  export * from "./store-user";
27
29
  export * from "./readonly";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,cAAc,CAAA;AAG5B,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,2BAA2B,CAAA;AACzC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,cAAc,CAAA;AAG5B,cAAc,YAAY,CAAA"}
@@ -28,6 +28,7 @@ __exportStar(require("./product-variant-inventory-item"), exports);
28
28
  __exportStar(require("./product-variant-price-set"), exports);
29
29
  __exportStar(require("./publishable-api-key-sales-channel"), exports);
30
30
  __exportStar(require("./region-payment-provider"), exports);
31
+ __exportStar(require("./region-fulfillment-provider"), exports);
31
32
  __exportStar(require("./sales-channel-location"), exports);
32
33
  __exportStar(require("./shipping-option-price-set"), exports);
33
34
  __exportStar(require("./product-shipping-profile"), exports);
@@ -39,6 +40,7 @@ __exportStar(require("./store-customer"), exports);
39
40
  __exportStar(require("./store-product"), exports);
40
41
  __exportStar(require("./store-region"), exports);
41
42
  __exportStar(require("./store-sales-channel"), exports);
43
+ __exportStar(require("./store-tax-region"), exports);
42
44
  __exportStar(require("./store-shipping-profile"), exports);
43
45
  __exportStar(require("./store-user"), exports);
44
46
  //read only links
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,mDAAgC;AAChC,kEAA+C;AAC/C,6DAA0C;AAC1C,+CAA4B;AAC5B,sDAAmC;AACnC,6DAA0C;AAC1C,oDAAiC;AACjC,6DAA0C;AAC1C,0DAAuC;AACvC,mEAAgD;AAChD,8DAA2C;AAC3C,sEAAmD;AACnD,4DAAyC;AACzC,2DAAwC;AACxC,8DAA2C;AAC3C,6DAA0C;AAC1C,4DAAyC;AACzC,kDAA+B;AAC/B,mDAAgC;AAChC,mDAAgC;AAChC,0CAA0C;AAC1C,kDAA+B;AAC/B,iDAA8B;AAC9B,wDAAqC;AACrC,2DAAwC;AACxC,+CAA4B;AAE5B,iBAAiB;AACjB,6CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,mDAAgC;AAChC,kEAA+C;AAC/C,6DAA0C;AAC1C,+CAA4B;AAC5B,sDAAmC;AACnC,6DAA0C;AAC1C,oDAAiC;AACjC,6DAA0C;AAC1C,0DAAuC;AACvC,mEAAgD;AAChD,8DAA2C;AAC3C,sEAAmD;AACnD,4DAAyC;AACzC,gEAA6C;AAC7C,2DAAwC;AACxC,8DAA2C;AAC3C,6DAA0C;AAC1C,4DAAyC;AACzC,kDAA+B;AAC/B,mDAAgC;AAChC,mDAAgC;AAChC,0CAA0C;AAC1C,kDAA+B;AAC/B,iDAA8B;AAC9B,wDAAqC;AACrC,qDAAkC;AAClC,2DAAwC;AACxC,+CAA4B;AAE5B,iBAAiB;AACjB,6CAA0B"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@aiminaabeejs/framework/types";
2
+ export declare const RegionFulfillmentProvider: ModuleJoinerConfig;
3
+ //# sourceMappingURL=region-fulfillment-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"region-fulfillment-provider.d.ts","sourceRoot":"","sources":["../../src/definitions/region-fulfillment-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,yBAAyB,EAAE,kBA0EvC,CAAA"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegionFulfillmentProvider = void 0;
4
+ const utils_1 = require("@aiminaabeejs/framework/utils");
5
+ exports.RegionFulfillmentProvider = {
6
+ serviceName: utils_1.LINKS.RegionFulfillmentProvider,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "region_fulfillment_provider",
10
+ idPrefix: "regfp",
11
+ },
12
+ alias: [
13
+ {
14
+ name: ["region_fulfillment_provider", "region_fulfillment_providers"],
15
+ entity: "LinkRegionFulfillmentProvider",
16
+ },
17
+ ],
18
+ primaryKeys: ["id", "region_id", "fulfillment_provider_id"],
19
+ relationships: [
20
+ {
21
+ serviceName: utils_1.Modules.REGION,
22
+ entity: "Region",
23
+ primaryKey: "id",
24
+ foreignKey: "region_id",
25
+ alias: "region",
26
+ args: {
27
+ methodSuffix: "Regions",
28
+ },
29
+ hasMany: true,
30
+ },
31
+ {
32
+ serviceName: utils_1.Modules.FULFILLMENT,
33
+ entity: "FulfillmentProvider",
34
+ primaryKey: "id",
35
+ foreignKey: "fulfillment_provider_id",
36
+ alias: "fulfillment_provider",
37
+ args: { methodSuffix: "FulfillmentProviders" },
38
+ hasMany: true,
39
+ },
40
+ ],
41
+ extends: [
42
+ // MANY-TO-MANY: Region has many FulfillmentProviders
43
+ {
44
+ serviceName: utils_1.Modules.REGION,
45
+ entity: "Region",
46
+ fieldAlias: {
47
+ fulfillment_providers: {
48
+ path: "fulfillment_provider_link.fulfillment_provider",
49
+ isList: true,
50
+ },
51
+ },
52
+ relationship: {
53
+ serviceName: utils_1.LINKS.RegionFulfillmentProvider,
54
+ primaryKey: "region_id",
55
+ foreignKey: "id",
56
+ alias: "fulfillment_provider_link",
57
+ isList: true,
58
+ },
59
+ },
60
+ // MANY-TO-MANY: FulfillmentProvider has many Regions
61
+ {
62
+ serviceName: utils_1.Modules.FULFILLMENT,
63
+ entity: "FulfillmentProvider",
64
+ fieldAlias: {
65
+ regions: {
66
+ path: "region_link.region",
67
+ isList: true,
68
+ },
69
+ },
70
+ relationship: {
71
+ serviceName: utils_1.LINKS.RegionFulfillmentProvider,
72
+ primaryKey: "fulfillment_provider_id",
73
+ foreignKey: "id",
74
+ alias: "region_link",
75
+ isList: true,
76
+ },
77
+ },
78
+ ],
79
+ };
80
+ //# sourceMappingURL=region-fulfillment-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"region-fulfillment-provider.js","sourceRoot":"","sources":["../../src/definitions/region-fulfillment-provider.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,yBAAyB,GAAuB;IAC3D,WAAW,EAAE,aAAK,CAAC,yBAAyB;IAC5C,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,6BAA6B;QACxC,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,6BAA6B,EAAE,8BAA8B,CAAC;YACrE,MAAM,EAAE,+BAA+B;SACxC;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,yBAAyB,CAAC;IAC3D,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,MAAM;YAC3B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,WAAW;YACvB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE;gBACJ,YAAY,EAAE,SAAS;aACxB;YACD,OAAO,EAAE,IAAI;SACd;QACD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,MAAM,EAAE,qBAAqB;YAC7B,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,yBAAyB;YACrC,KAAK,EAAE,sBAAsB;YAC7B,IAAI,EAAE,EAAE,YAAY,EAAE,sBAAsB,EAAE;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE;QACP,qDAAqD;QACrD;YACE,WAAW,EAAE,eAAO,CAAC,MAAM;YAC3B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE;gBACV,qBAAqB,EAAE;oBACrB,IAAI,EAAE,gDAAgD;oBACtD,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,yBAAyB;gBAC5C,UAAU,EAAE,WAAW;gBACvB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,2BAA2B;gBAClC,MAAM,EAAE,IAAI;aACb;SACF;QACD,qDAAqD;QACrD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,MAAM,EAAE,qBAAqB;YAC7B,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,oBAAoB;oBAC1B,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,yBAAyB;gBAC5C,UAAU,EAAE,yBAAyB;gBACrC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"region-payment-provider.d.ts","sourceRoot":"","sources":["../../src/definitions/region-payment-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,qBAAqB,EAAE,kBAwEnC,CAAA"}
1
+ {"version":3,"file":"region-payment-provider.d.ts","sourceRoot":"","sources":["../../src/definitions/region-payment-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,qBAAqB,EAAE,kBA0EnC,CAAA"}
@@ -39,6 +39,7 @@ exports.RegionPaymentProvider = {
39
39
  },
40
40
  ],
41
41
  extends: [
42
+ // MANY-TO-MANY: Region has many PaymentProviders
42
43
  {
43
44
  serviceName: utils_1.Modules.REGION,
44
45
  entity: "Region",
@@ -56,6 +57,7 @@ exports.RegionPaymentProvider = {
56
57
  isList: true,
57
58
  },
58
59
  },
60
+ // MANY-TO-MANY: PaymentProvider has many Regions
59
61
  {
60
62
  serviceName: utils_1.Modules.PAYMENT,
61
63
  entity: "PaymentProvider",
@@ -1 +1 @@
1
- {"version":3,"file":"region-payment-provider.js","sourceRoot":"","sources":["../../src/definitions/region-payment-provider.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,qBAAqB,GAAuB;IACvD,WAAW,EAAE,aAAK,CAAC,qBAAqB;IACxC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,yBAAyB;QACpC,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,yBAAyB,EAAE,0BAA0B,CAAC;YAC7D,MAAM,EAAE,2BAA2B;SACpC;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,qBAAqB,CAAC;IACvD,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,MAAM;YAC3B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,WAAW;YACvB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE;gBACJ,YAAY,EAAE,SAAS;aACxB;YACD,OAAO,EAAE,IAAI;SACd;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,iBAAiB;YACzB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,qBAAqB;YACjC,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,EAAE,YAAY,EAAE,kBAAkB,EAAE;YAC1C,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,MAAM;YAC3B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE;gBACV,iBAAiB,EAAE;oBACjB,IAAI,EAAE,wCAAwC;oBAC9C,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,qBAAqB;gBACxC,UAAU,EAAE,WAAW;gBACvB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,uBAAuB;gBAC9B,MAAM,EAAE,IAAI;aACb;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,iBAAiB;YACzB,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,oBAAoB;oBAC1B,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,qBAAqB;gBACxC,UAAU,EAAE,qBAAqB;gBACjC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
1
+ {"version":3,"file":"region-payment-provider.js","sourceRoot":"","sources":["../../src/definitions/region-payment-provider.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,qBAAqB,GAAuB;IACvD,WAAW,EAAE,aAAK,CAAC,qBAAqB;IACxC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,yBAAyB;QACpC,Q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BACZ,WAAW,EAAE,aAAK,CAAC,qBAAqB;gBACxC,UAAU,EAAE,qBAAqB;gBACjC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@aiminaabeejs/framework/types";
2
+ export declare const StoreTaxRegion: ModuleJoinerConfig;
3
+ //# sourceMappingURL=store-tax-region.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-tax-region.d.ts","sourceRoot":"","sources":["../../src/definitions/store-tax-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,cAAc,EAAE,kBA8E5B,CAAA"}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoreTaxRegion = void 0;
4
+ const utils_1 = require("@aiminaabeejs/framework/utils");
5
+ exports.StoreTaxRegion = {
6
+ serviceName: utils_1.LINKS.StoreTaxRegion,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "store_tax_region",
10
+ idPrefix: "sttxreg",
11
+ },
12
+ alias: [
13
+ {
14
+ name: "store_tax_region",
15
+ },
16
+ {
17
+ name: "store_tax_regions",
18
+ },
19
+ ],
20
+ primaryKeys: ["id", "store_id", "tax_region_id"],
21
+ relationships: [
22
+ {
23
+ serviceName: utils_1.Modules.STORE,
24
+ entity: "Store",
25
+ primaryKey: "id",
26
+ foreignKey: "store_id",
27
+ alias: "store",
28
+ args: {
29
+ methodSuffix: "Stores",
30
+ },
31
+ hasMany: true,
32
+ },
33
+ {
34
+ serviceName: utils_1.Modules.TAX,
35
+ entity: "TaxRegion",
36
+ primaryKey: "id",
37
+ foreignKey: "tax_region_id",
38
+ alias: "tax_region",
39
+ args: {
40
+ methodSuffix: "TaxRegions",
41
+ },
42
+ hasMany: true,
43
+ },
44
+ ],
45
+ extends: [
46
+ // ONE-TO-MANY: Store has many Tax Regions
47
+ {
48
+ serviceName: utils_1.Modules.STORE,
49
+ entity: "Store",
50
+ fieldAlias: {
51
+ tax_regions: {
52
+ path: "tax_regions_link.tax_region",
53
+ isList: true, // ONE Store → MANY Tax Regions
54
+ },
55
+ },
56
+ relationship: {
57
+ serviceName: utils_1.LINKS.StoreTaxRegion,
58
+ primaryKey: "store_id",
59
+ foreignKey: "id",
60
+ alias: "tax_regions_link",
61
+ isList: true,
62
+ },
63
+ },
64
+ // ONE-TO-MANY: Tax Region belongs to exactly one Store
65
+ {
66
+ serviceName: utils_1.Modules.TAX,
67
+ entity: "TaxRegion",
68
+ fieldAlias: {
69
+ store: {
70
+ path: "store_link.store",
71
+ isList: false, // ONE Tax Region → ONE Store (singular field name "store")
72
+ },
73
+ },
74
+ relationship: {
75
+ serviceName: utils_1.LINKS.StoreTaxRegion,
76
+ primaryKey: "tax_region_id",
77
+ foreignKey: "id",
78
+ alias: "store_link", // Singular alias (not "stores_link")
79
+ isList: false, // ONE Tax Region → ONE Store
80
+ },
81
+ },
82
+ ],
83
+ };
84
+ //# sourceMappingURL=store-tax-region.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-tax-region.js","sourceRoot":"","sources":["../../src/definitions/store-tax-region.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,cAAc,GAAuB;IAChD,WAAW,EAAE,aAAK,CAAC,cAAc;IACjC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,kBAAkB;QAC7B,QAAQ,EAAE,SAAS;KACpB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,kBAAkB;SACzB;QACD;YACE,IAAI,EAAE,mBAAmB;SAC1B;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,CAAC;IAChD,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,M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src/definitions/cart-promotion.ts","../src/definitions/customer-account-holder.ts","../src/definitions/fulfillment-provider-location.ts","../src/definitions/fulfillment-set-location.ts","../src/definitions/index.ts","../src/definitions/order-cart.ts","../src/definitions/order-fulfillment.ts","../src/definitions/order-payment-collection.ts","../src/definitions/order-promotion.ts","../src/definitions/order-return-fulfillment.ts","../src/definitions/product-sales-channel.ts","../src/definitions/product-shipping-profile.ts","../src/definitions/product-variant-inventory-item.ts","../src/definitions/product-variant-price-set.ts","../src/definitions/publishable-api-key-sales-channel.ts","../src/definitions/region-payment-provider.ts","../src/definitions/sales-channel-location.ts","../src/definitions/shipping-option-price-set.ts","../src/definitions/store-api-key.ts","../src/definitions/store-category.ts","../src/definitions/store-customer.ts","../src/definitions/store-inventory-level.ts","../src/definitions/store-product.ts","../src/definitions/store-region.ts","../src/definitions/store-sales-channel.ts","../src/definitions/store-shipping-profile.ts","../src/definitions/store-user.ts","../src/definitions/readonly/index.ts","../src/definitions/readonly/store-currency.ts","../src/initialize/index.ts","../src/initialize/module-definition.ts","../src/loaders/connection.ts","../src/loaders/container.ts","../src/loaders/index.ts","../src/migration/index.ts","../src/repositories/index.ts","../src/repositories/link.ts","../src/services/dynamic-service-class.ts","../src/services/index.ts","../src/services/link-module-service.ts","../src/services/link.ts","../src/types/index.ts","../src/utils/generate-entity.ts","../src/utils/generate-schema.ts","../src/utils/index.ts"],"version":"5.7.3"}
1
+ {"root":["../src/index.ts","../src/definitions/cart-payment-collection.ts","../src/definitions/cart-promotion.ts","../src/definitions/customer-account-holder.ts","../src/definitions/fulfillment-provider-location.ts","../src/definitions/fulfillment-set-location.ts","../src/definitions/index.ts","../src/definitions/order-cart.ts","../src/definitions/order-fulfillment.ts","../src/definitions/order-payment-collection.ts","../src/definitions/order-promotion.ts","../src/definitions/order-return-fulfillment.ts","../src/definitions/product-sales-channel.ts","../src/definitions/product-shipping-profile.ts","../src/definitions/product-variant-inventory-item.ts","../src/definitions/product-variant-price-set.ts","../src/definitions/publishable-api-key-sales-channel.ts","../src/definitions/region-fulfillment-provider.ts","../src/definitions/region-payment-provider.ts","../src/definitions/sales-channel-location.ts","../src/definitions/shipping-option-price-set.ts","../src/definitions/store-api-key.ts","../src/definitions/store-category.ts","../src/definitions/store-customer.ts","../src/definitions/store-inventory-level.ts","../src/definitions/store-product.ts","../src/definitions/store-region.ts","../src/definitions/store-sales-channel.ts","../src/definitions/store-shipping-profile.ts","../src/definitions/store-tax-region.ts","../src/definitions/store-user.ts","../src/definitions/readonly/index.ts","../src/definitions/readonly/store-currency.ts","../src/initialize/index.ts","../src/initialize/module-definition.ts","../src/loaders/connection.ts","../src/loaders/container.ts","../src/loaders/index.ts","../src/migration/index.ts","../src/repositories/index.ts","../src/repositories/link.ts","../src/services/dynamic-service-class.ts","../src/services/index.ts","../src/services/link-module-service.ts","../src/services/link.ts","../src/types/index.ts","../src/utils/generate-entity.ts","../src/utils/generate-schema.ts","../src/utils/index.ts"],"version":"5.7.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiminaabeejs/link-modules",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "Aiminaabeejs Default Link Modules Package and Definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",