@medusajs/order 0.1.3-snapshot-20240904130551 → 0.1.3-snapshot-20240906075935

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/index.d.ts.map +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/joiner-config.d.ts +2 -0
  5. package/dist/joiner-config.d.ts.map +1 -0
  6. package/dist/joiner-config.js +29 -0
  7. package/dist/joiner-config.js.map +1 -0
  8. package/dist/migrations/Migration20240902195921.d.ts +6 -0
  9. package/dist/migrations/Migration20240902195921.d.ts.map +1 -0
  10. package/dist/migrations/Migration20240902195921.js +16 -0
  11. package/dist/migrations/Migration20240902195921.js.map +1 -0
  12. package/dist/models/line-item.d.ts +1 -0
  13. package/dist/models/line-item.d.ts.map +1 -1
  14. package/dist/models/line-item.js +5 -0
  15. package/dist/models/line-item.js.map +1 -1
  16. package/dist/models/shipping-method.d.ts +1 -0
  17. package/dist/models/shipping-method.d.ts.map +1 -1
  18. package/dist/models/shipping-method.js +5 -0
  19. package/dist/models/shipping-method.js.map +1 -1
  20. package/dist/schema/index.d.ts +3 -0
  21. package/dist/schema/index.d.ts.map +1 -0
  22. package/dist/schema/index.js +576 -0
  23. package/dist/schema/index.js.map +1 -0
  24. package/dist/services/order-module-service.d.ts +2 -1
  25. package/dist/services/order-module-service.d.ts.map +1 -1
  26. package/dist/services/order-module-service.js +4 -0
  27. package/dist/services/order-module-service.js.map +1 -1
  28. package/dist/types/utils/index.d.ts +0 -2
  29. package/dist/types/utils/index.d.ts.map +1 -1
  30. package/dist/utils/actions/return-item.js +0 -1
  31. package/dist/utils/actions/return-item.js.map +1 -1
  32. package/dist/utils/calculate-order-change.d.ts.map +1 -1
  33. package/dist/utils/calculate-order-change.js +0 -6
  34. package/dist/utils/calculate-order-change.js.map +1 -1
  35. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;;;;AAG9C,wBAEE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;;;;AAE9C,wBAEE"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const _services_1 = require("./services");
4
3
  const utils_1 = require("@medusajs/utils");
4
+ const _services_1 = require("./services");
5
5
  exports.default = (0, utils_1.Module)(utils_1.Modules.ORDER, {
6
6
  service: _services_1.OrderModuleService,
7
7
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,yCAA8C;AAC9C,2CAAiD;AAEjD,kBAAe,IAAA,cAAM,EAAC,eAAO,CAAC,KAAK,EAAE;IACnC,OAAO,EAAE,8BAAkB;CAC5B,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,2CAAiD;AACjD,yCAA8C;AAE9C,kBAAe,IAAA,cAAM,EAAC,eAAO,CAAC,KAAK,EAAE;IACnC,OAAO,EAAE,8BAAkB;CAC5B,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const joinerConfig: Omit<import("@medusajs/types").ModuleJoinerConfig, "serviceName" | "primaryKeys" | "alias" | "linkableKeys"> & Required<Pick<import("@medusajs/types").ModuleJoinerConfig, "serviceName" | "primaryKeys" | "alias" | "linkableKeys">>;
2
+ //# sourceMappingURL=joiner-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY,uOAkBvB,CAAA"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.joinerConfig = void 0;
7
+ const utils_1 = require("@medusajs/utils");
8
+ const _models_1 = require("./models");
9
+ const schema_1 = __importDefault(require("./schema"));
10
+ exports.joinerConfig = (0, utils_1.defineJoinerConfig)(utils_1.Modules.ORDER, {
11
+ schema: schema_1.default,
12
+ linkableKeys: {
13
+ claim_id: "OrderClaim",
14
+ exchange_id: "OrderExchange",
15
+ },
16
+ models: [
17
+ _models_1.Order,
18
+ _models_1.OrderAddress,
19
+ _models_1.OrderChange,
20
+ _models_1.OrderClaim,
21
+ _models_1.OrderExchange,
22
+ _models_1.OrderLineItem,
23
+ _models_1.OrderShippingMethod,
24
+ _models_1.OrderTransaction,
25
+ _models_1.Return,
26
+ _models_1.ReturnReason,
27
+ ],
28
+ });
29
+ //# sourceMappingURL=joiner-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joiner-config.js","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA6D;AAC7D,qCAWgB;AAChB,sDAA4C;AAE/B,QAAA,YAAY,GAAG,IAAA,0BAAkB,EAAC,eAAO,CAAC,KAAK,EAAE;IAC5D,MAAM,EAAN,gBAAM;IACN,YAAY,EAAE;QACZ,QAAQ,EAAE,YAAY;QACtB,WAAW,EAAE,eAAe;KAC7B;IACD,MAAM,EAAE;QACN,eAAK;QACL,sBAAY;QACZ,qBAAW;QACX,oBAAU;QACV,uBAAa;QACb,uBAAa;QACb,6BAAmB;QACnB,0BAAgB;QAChB,gBAAM;QACN,sBAAY;KACb;CACF,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ export declare class Migration20240902195921 extends Migration {
3
+ up(): Promise<void>;
4
+ down(): Promise<void>;
5
+ }
6
+ //# sourceMappingURL=Migration20240902195921.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration20240902195921.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20240902195921.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAE9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAM5B"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Migration20240902195921 = void 0;
4
+ const migrations_1 = require("@mikro-orm/migrations");
5
+ class Migration20240902195921 extends migrations_1.Migration {
6
+ async up() {
7
+ this.addSql('alter table if exists "order_line_item" add column if not exists "is_custom_price" boolean not null default false;');
8
+ this.addSql('alter table if exists "order_shipping_method" add column if not exists "is_custom_amount" boolean not null default false;');
9
+ }
10
+ async down() {
11
+ this.addSql('alter table if exists "order_line_item" drop column if exists "is_custom_price";');
12
+ this.addSql('alter table if exists "order_shipping_method" drop column if exists "is_custom_amount";');
13
+ }
14
+ }
15
+ exports.Migration20240902195921 = Migration20240902195921;
16
+ //# sourceMappingURL=Migration20240902195921.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration20240902195921.js","sourceRoot":"","sources":["../../src/migrations/Migration20240902195921.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAEpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,oHAAoH,CAAC,CAAC;QAElI,IAAI,CAAC,MAAM,CAAC,2HAA2H,CAAC,CAAC;IAC3I,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,kFAAkF,CAAC,CAAC;QAEhG,IAAI,CAAC,MAAM,CAAC,yFAAyF,CAAC,CAAC;IACzG,CAAC;CAEF;AAdD,0DAcC"}
@@ -29,6 +29,7 @@ export default class OrderLineItem {
29
29
  raw_compare_at_unit_price: BigNumberRawValue | null;
30
30
  unit_price: BigNumber | number;
31
31
  raw_unit_price: BigNumberRawValue;
32
+ is_custom_price: boolean;
32
33
  tax_lines: Collection<OrderLineItemTaxLine, object>;
33
34
  adjustments: Collection<OrderLineItemAdjustment, object>;
34
35
  metadata: Record<string, unknown> | null;
@@ -1 +1 @@
1
- {"version":3,"file":"line-item.d.ts","sourceRoot":"","sources":["../../src/models/line-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAKV,aAAa,EAId,MAAM,iBAAiB,CAAA;AACxB,OAAO,uBAAuB,MAAM,wBAAwB,CAAA;AAC5D,OAAO,oBAAoB,MAAM,sBAAsB,CAAA;AAEvD,KAAK,qBAAqB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AAsBjD,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,CAAC,aAAa,CAAC,CAAC,EAAE,qBAAqB,CAAA;IAGvC,EAAE,EAAE,MAAM,CAAA;IAGV,KAAK,EAAE,MAAM,CAAA;IAGb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAO;IAG9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAO/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAO;IAOhC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAO;IAGhC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAO;IAGnC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGzC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGtC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IAGlC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGxC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAO;IAGpC,WA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,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
@@ -52,6 +52,7 @@ let OrderLineItem = class OrderLineItem {
52
52
  this.is_tax_inclusive = false;
53
53
  this.compare_at_unit_price = null;
54
54
  this.raw_compare_at_unit_price = null;
55
+ this.is_custom_price = false;
55
56
  this.tax_lines = new core_1.Collection(this);
56
57
  this.adjustments = new core_1.Collection(this);
57
58
  this.metadata = null;
@@ -168,6 +169,10 @@ __decorate([
168
169
  (0, core_1.Property)({ columnType: "jsonb" }),
169
170
  __metadata("design:type", Object)
170
171
  ], OrderLineItem.prototype, "raw_unit_price", void 0);
172
+ __decorate([
173
+ (0, core_1.Property)({ columnType: "boolean", default: false }),
174
+ __metadata("design:type", Boolean)
175
+ ], OrderLineItem.prototype, "is_custom_price", void 0);
171
176
  __decorate([
172
177
  (0, core_1.OneToMany)(() => line_item_tax_line_1.default, (taxLine) => taxLine.item, {
173
178
  cascade: [core_1.Cascade.PERSIST, "soft-remove"],
@@ -1 +1 @@
1
- {"version":3,"file":"line-item.js","sourceRoot":"","sources":["../../src/models/line-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAMwB;AACxB,0CAYwB;AACxB,kFAA4D;AAC5D,8EAAuD;AAIvD,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAIa,IAAM,aAAa,GAAnB,MAAM,aAAa;IAAnB;QAUb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berRawValue;
12
12
  is_tax_inclusive: boolean;
13
+ is_custom_amount: boolean;
13
14
  shipping_option_id: string | null;
14
15
  data: Record<string, unknown> | null;
15
16
  metadata: Record<string, unknown> | null;
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-method.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAQX,MAAM,iBAAiB,CAAA;AACxB,OAAO,6BAA6B,MAAM,8BAA8B,CAAA;AACxE,OAAO,0BAA0B,MAAM,4BAA4B,CAAA;AAgBnE,MAAM,CAAC,OAAO,OAAO,mBAAmB;IAEtC,EAAE,EAAE,MAAM,CAAA;IAGV,IAAI,EAAE,MAAM,CAAA;IAGZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAA;IAG1B,UAAU,EAAE,iBAAiB,CAAA;IAG7B,gBAAgB,EAAE,OAAO,CAAQ;IAOjC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAG3C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAS/C,SAAS,iDAAwD;IASjE,WAAW,oDAA2D;IAOtE,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAIR,MAAM;CAGP"}
1
+ {"version":3,"file":"shipping-method.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAQX,MAAM,iBAAiB,CAAA;AACxB,OAAO,6BAA6B,MAAM,8BAA8B,CAAA;AACxE,OAAO,0BAA0B,MAAM,4BAA4B,CAAA;AAgBnE,MAAM,CAAC,OAAO,OAAO,mBAAmB;IAEtC,EAAE,EAAE,MAAM,CAAA;IAGV,IAAI,EAAE,MAAM,CAAA;IAGZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAA;IAG1B,UAAU,EAAE,iBAAiB,CAAA;IAG7B,gBAAgB,EAAE,OAAO,CAAQ;IAGjC,gBAAgB,EAAE,OAAO,CAAQ;IAOjC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAG3C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAS/C,SAAS,iDAAwD;IASjE,WAAW,oDAA2D;IAOtE,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAIR,MAAM;CAGP"}
@@ -30,6 +30,7 @@ let OrderShippingMethod = class OrderShippingMethod {
30
30
  constructor() {
31
31
  this.description = null;
32
32
  this.is_tax_inclusive = false;
33
+ this.is_custom_amount = false;
33
34
  this.shipping_option_id = null;
34
35
  this.data = null;
35
36
  this.metadata = null;
@@ -68,6 +69,10 @@ __decorate([
68
69
  (0, core_1.Property)({ columnType: "boolean" }),
69
70
  __metadata("design:type", Boolean)
70
71
  ], OrderShippingMethod.prototype, "is_tax_inclusive", void 0);
72
+ __decorate([
73
+ (0, core_1.Property)({ columnType: "boolean", default: false }),
74
+ __metadata("design:type", Boolean)
75
+ ], OrderShippingMethod.prototype, "is_custom_amount", void 0);
71
76
  __decorate([
72
77
  (0, core_1.Property)({
73
78
  columnType: "text",
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-method.js","sourceRoot":"","sources":["../../src/models/shipping-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAMwB;AACxB,0CAWwB;AACxB,8FAAwE;AACxE,0FAAmE;AAEnE,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,uBAAuB;IAClC,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,qBAAqB,GAAG,IAAA,sCAA8B,EAAC;IAC3D,SAAS,EAAE,uBAAuB;IAClC,OAAO,EAAE,oBAAoB;IAC7B,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAIa,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAAzB;QAQb,gBAAW,GAAkB,IAAI,CAAA;QASjC,qBAAgB,GAAY,KAAK,CAAA;QAOjC,uBAAkB,GAAkB,IAAI,CAAA;QAGxC,SAAI,GAAmC,IAAI,CAAA;QAG3C,aAAQ,GAAmC,IAAI,CAAA;QAS/C,cAAS,GAAG,IAAI,iBAAU,CAAkC,IAAI,CAAC,CAAA;QASjE,gBAAW,GAAG,IAAI,iBAAU,CAAqC,IAAI,CAAC,CAAA;QAmBtE,eAAU,GAAgB,IAAI,CAAA;IAUhC,CAAC;IAPC,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IAC9C,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IAC9C,CAAC;CACF,CAAA;AA3EC;IADC,IAAA,iBAAU,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;;+CACzB;AAGV;IADC,IAAA,e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AkC,CAAC;GAC/B,mBAAmB,CAgFvC;kBAhFoB,mBAAmB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: "\nenum ChangeActionType {\n CANCEL_RETURN_ITEM\n FULFILL_ITEM\n CANCEL_ITEM_FULFILLMENT\n ITEM_ADD\n ITEM_REMOVE\n ITEM_UPDATE\n RECEIVE_DAMAGED_RETURN_ITEM\n RECEIVE_RETURN_ITEM\n RETURN_ITEM\n SHIPPING_ADD\n SHIPPING_REMOVE\n SHIP_ITEM\n WRITE_OFF_ITEM\n REINSTATE_ITEM\n}\n\ntype OrderSummary {\n total: Float\n subtotal: Float\n total_tax: Float\n ordered_total: Float\n fulfilled_total: Float\n returned_total: Float\n return_request_total: Float\n write_off_total: Float\n projected_total: Float\n net_total: Float\n net_subtotal: Float\n net_total_tax: Float\n balance: Float\n paid_total: Float\n refunded_total: Float\n pending_difference: Float\n raw_pending_difference: JSON\n}\n\ntype OrderAdjustmentLine {\n id: ID!\n code: String\n amount: Float\n order_id: String!\n description: String\n promotion_id: String\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderShippingMethodAdjustment {\n id: ID!\n code: String\n amount: Float\n order_id: String!\n description: String\n promotion_id: String\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n shipping_method: OrderShippingMethod\n shipping_method_id: String!\n}\n\ntype OrderLineItemAdjustment {\n id: ID!\n code: String\n amount: Float\n order_id: String!\n description: String\n promotion_id: String\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n item: OrderLineItem\n item_id: String!\n}\n\ntype OrderTaxLine {\n id: ID!\n description: String\n tax_rate_id: String\n code: String!\n rate: Float\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderShippingMethodTaxLine {\n id: ID!\n description: String\n tax_rate_id: String\n code: String!\n rate: Float\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n shipping_method: OrderShippingMethod\n shipping_method_id: String!\n total: Float\n subtotal: Float\n raw_total: JSON\n raw_subtotal: JSON\n}\n\ntype OrderLineItemTaxLine {\n id: ID!\n description: String\n tax_rate_id: String\n code: String!\n rate: Float\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n item: OrderLineItem\n item_id: String!\n total: Float\n subtotal: Float\n raw_total: JSON\n raw_subtotal: JSON\n}\n\ntype OrderAddress {\n id: ID!\n customer_id: String\n first_name: String\n last_name: String\n phone: String\n company: String\n address_1: String\n address_2: String\n city: String\n country_code: String\n province: String\n postal_code: String\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderShippingMethod {\n id: ID!\n order_id: String!\n name: String!\n description: String\n amount: Float\n raw_amount: JSON\n is_tax_inclusive: Boolean\n shipping_option_id: String\n data: JSON\n metadata: JSON\n tax_lines: [OrderShippingMethodTaxLine]\n adjustments: [OrderShippingMethodAdjustment]\n created_at: DateTime\n updated_at: DateTime\n original_total: Float\n original_subtotal: Float\n original_tax_total: Float\n total: Float\n subtotal: Float\n tax_total: Float\n discount_total: Float\n discount_tax_total: Float\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n}\n\ntype OrderLineItem {\n id: ID!\n title: String!\n subtitle: String\n thumbnail: String\n variant_id: String\n product_id: String\n product_title: String\n product_description: String\n product_subtitle: String\n product_type: String\n product_collection: String\n product_handle: String\n variant_sku: String\n variant_barcode: String\n variant_title: String\n variant_option_values: JSON\n requires_shipping: Boolean!\n is_discountable: Boolean!\n is_tax_inclusive: Boolean!\n compare_at_unit_price: Float\n raw_compare_at_unit_price: JSON\n unit_price: Float!\n raw_unit_price: JSON\n quantity: Int!\n raw_quantity: JSON\n tax_lines: [OrderLineItemTaxLine]\n adjustments: [OrderLineItemAdjustment]\n detail: OrderItem!\n created_at: DateTime!\n updated_at: DateTime!\n metadata: JSON\n original_total: Float\n original_subtotal: Float\n original_tax_total: Float\n item_total: Float\n item_subtotal: Float\n item_tax_total: Float\n total: Float\n subtotal: Float\n tax_total: Float\n discount_total: Float\n discount_tax_total: Float\n refundable_total: Float\n refundable_total_per_unit: Float\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_item_total: JSON\n raw_item_subtotal: JSON\n raw_item_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n raw_refundable_total: JSON\n raw_refundable_total_per_unit: JSON\n}\n\ntype OrderItem {\n id: ID!\n item_id: String!\n item: OrderLineItem!\n quantity: Int!\n raw_quantity: JSON\n fulfilled_quantity: Int!\n raw_fulfilled_quantity: JSON\n shipped_quantity: Int!\n raw_shipped_quantity: JSON\n return_requested_quantity: Int!\n raw_return_requested_quantity: JSON\n return_received_quantity: Int!\n raw_return_received_quantity: JSON\n return_dismissed_quantity: Int!\n raw_return_dismissed_quantity: JSON\n written_off_quantity: Int!\n raw_written_off_quantity: JSON\n metadata: JSON\n created_at: DateTime!\n updated_at: DateTime!\n}\n\nenum OrderStatus {\n pending\n completed\n draft\n archived\n canceled\n requires_action\n}\n\ntype Order {\n id: ID!\n version: Int!\n order_change: OrderChange\n status: OrderStatus!\n region_id: String\n customer_id: String\n sales_channel_id: String\n email: String\n currency_code: String!\n shipping_address: OrderAddress\n billing_address: OrderAddress\n items: [OrderLineItem]\n shipping_methods: [OrderShippingMethod]\n transactions: [OrderTransaction]\n summary: OrderSummary\n metadata: JSON\n canceled_at: DateTime\n created_at: DateTime!\n updated_at: DateTime!\n original_item_total: Float!\n original_item_subtotal: Float!\n original_item_tax_total: Float!\n item_total: Float!\n item_subtotal: Float!\n item_tax_total: Float!\n original_total: Float!\n original_subtotal: Float!\n original_tax_total: Float!\n total: Float!\n subtotal: Float!\n tax_total: Float!\n discount_total: Float!\n discount_tax_total: Float!\n gift_card_total: Float!\n gift_card_tax_total: Float!\n shipping_total: Float!\n shipping_subtotal: Float!\n shipping_tax_total: Float!\n original_shipping_total: Float!\n original_shipping_subtotal: Float!\n original_shipping_tax_total: Float!\n raw_original_item_total: JSON\n raw_original_item_subtotal: JSON\n raw_original_item_tax_total: JSON\n raw_item_total: JSON\n raw_item_subtotal: JSON\n raw_item_tax_total: JSON\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n raw_gift_card_total: JSON\n raw_gift_card_tax_total: JSON\n raw_shipping_total: JSON\n raw_shipping_subtotal: JSON\n raw_shipping_tax_total: JSON\n raw_original_shipping_total: JSON\n raw_original_shipping_subtotal: JSON\n raw_original_shipping_tax_total: JSON\n}\n\nenum ReturnStatus {\n requested\n received\n partially_received\n canceled\n}\n\ntype Return {\n id: ID!\n status: ReturnStatus!\n refund_amount: Float\n order_id: String!\n items: [OrderReturnItem]!\n}\n\ntype OrderReturnItem {\n id: ID!\n return_id: String!\n order_id: String!\n item_id: String!\n reason_id: String\n quantity: Int!\n raw_quantity: JSON\n received_quantity: Int\n raw_received_quantity: JSON\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderClaimItem {\n id: ID!\n claim_id: String!\n order_id: String!\n item_id: String!\n quantity: Int!\n reason: ClaimReason!\n raw_quantity: JSON\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderClaimItemImage {\n id: ID!\n claim_item_id: String!\n url: String\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderExchangeItem {\n id: ID!\n exchange_id: String!\n order_id: String!\n item_id: String!\n quantity: Int!\n raw_quantity: JSON\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderClaim {\n order_id: String!\n claim_items: [OrderClaimItem]!\n additional_items: [OrderClaimItem]!\n return: Return\n return_id: String\n no_notification: Boolean\n refund_amount: Float\n created_by: String\n}\n\ntype OrderExchange {\n order_id: String!\n return_items: [OrderReturnItem]!\n additional_items: [OrderClaimItem]!\n no_notification: Boolean\n difference_due: Float\n return: Return\n return_id: String\n created_by: String\n}\n\nenum PaymentStatus {\n not_paid\n awaiting\n authorized\n partially_authorized\n captured\n partially_captured\n partially_refunded\n refunded\n canceled\n requires_action\n}\n\nenum FulfillmentStatus {\n not_fulfilled\n partially_fulfilled\n fulfilled\n partially_shipped\n shipped\n partially_delivered\n delivered\n canceled\n}\n\ntype OrderDetail {\n id: ID!\n version: Int!\n order_change: OrderChange\n status: OrderStatus!\n region_id: String\n customer_id: String\n sales_channel_id: String\n email: String\n currency_code: String!\n shipping_address: OrderAddress\n billing_address: OrderAddress\n items: [OrderLineItem]\n shipping_methods: [OrderShippingMethod]\n transactions: [OrderTransaction]\n summary: OrderSummary\n metadata: JSON\n canceled_at: DateTime\n created_at: DateTime!\n updated_at: DateTime!\n original_item_total: Float!\n original_item_subtotal: Float!\n original_item_tax_total: Float!\n item_total: Float!\n item_subtotal: Float!\n item_tax_total: Float!\n original_total: Float!\n original_subtotal: Float!\n original_tax_total: Float!\n total: Float!\n subtotal: Float!\n tax_total: Float!\n discount_total: Float!\n discount_tax_total: Float!\n gift_card_total: Float!\n gift_card_tax_total: Float!\n shipping_total: Float!\n shipping_subtotal: Float!\n shipping_tax_total: Float!\n original_shipping_total: Float!\n original_shipping_subtotal: Float!\n original_shipping_tax_total: Float!\n raw_original_item_total: JSON\n raw_original_item_subtotal: JSON\n raw_original_item_tax_total: JSON\n raw_item_total: JSON\n raw_item_subtotal: JSON\n raw_item_tax_total: JSON\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n raw_gift_card_total: JSON\n raw_gift_card_tax_total: JSON\n raw_shipping_total: JSON\n raw_shipping_subtotal: JSON\n raw_shipping_tax_total: JSON\n raw_original_shipping_total: JSON\n raw_original_shipping_subtotal: JSON\n raw_original_shipping_tax_total: JSON\n payment_collections: [PaymentCollection]\n payment_status: PaymentStatus!\n fulfillments: [Fulfillment]\n fulfillment_status: FulfillmentStatus!\n}\n\ntype OrderChange {\n id: ID!\n version: Int!\n change_type: String\n order_id: String!\n return_id: String\n exchange_id: String\n claim_id: String\n order: Order!\n return_order: Return\n exchange: OrderExchange\n claim: OrderClaim\n actions: [OrderChangeAction]!\n status: String!\n requested_by: String\n requested_at: DateTime\n confirmed_by: String\n confirmed_at: DateTime\n declined_by: String\n declined_reason: String\n metadata: JSON\n declined_at: DateTime\n canceled_by: String\n canceled_at: DateTime\n created_at: DateTime!\n updated_at: DateTime!\n}\n\ntype OrderChangeAction {\n id: ID!\n order_change_id: String\n order_change: OrderChange\n order_id: String\n return_id: String\n claim_id: String\n exchange_id: String\n order: Order\n reference: String!\n reference_id: String!\n action: ChangeActionType!\n details: JSON\n internal_note: String\n created_at: DateTime!\n updated_at: DateTime!\n}\n\ntype OrderTransaction {\n id: ID!\n order_id: String!\n order: Order!\n amount: Float!\n raw_amount: JSON\n currency_code: String!\n reference: String!\n reference_id: String!\n metadata: JSON\n created_at: DateTime!\n updated_at: DateTime!\n}\n\n";
2
+ export default _default;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";AAAA,wBA4jBC"}