@forgecart/sdk 1.202610071755.0 → 1.202610072140.0

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.
@@ -2801,7 +2801,12 @@ export type FulfillmentLineInput = {
2801
2801
  quantity: Scalars['Int']['input'];
2802
2802
  };
2803
2803
  export type FulfillmentRequest = {
2804
- assignedLocation: StockLocation;
2804
+ /**
2805
+ * The stock location the request ships from. Null for a request nothing ships
2806
+ * from one: a DIGITAL or NONE request planned on a channel without a stock
2807
+ * location. SHIP and PICKUP requests always carry one.
2808
+ */
2809
+ assignedLocation?: Maybe<StockLocation>;
2805
2810
  createdAt: Scalars['DateTime']['output'];
2806
2811
  deliveryMethod: DeliveryMethod;
2807
2812
  destinationAddress?: Maybe<OrderAddress>;
@@ -12432,7 +12437,7 @@ export type FulfillmentRequestFieldFragment = (Pick<FulfillmentRequest, 'id' | '
12432
12437
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12433
12438
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12434
12439
  })>;
12435
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12440
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12436
12441
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12437
12442
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12438
12443
  });
@@ -12445,7 +12450,7 @@ export type FulfillmentRequestQuery = {
12445
12450
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12446
12451
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12447
12452
  })>;
12448
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12453
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12449
12454
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12450
12455
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12451
12456
  })>;
@@ -12459,7 +12464,7 @@ export type FulfillmentRequestsForOrderQuery = {
12459
12464
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12460
12465
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12461
12466
  })>;
12462
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12467
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12463
12468
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12464
12469
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12465
12470
  })>;
@@ -12477,7 +12482,7 @@ export type AcceptFulfillmentRequestMutation = {
12477
12482
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12478
12483
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12479
12484
  })>;
12480
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12485
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12481
12486
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12482
12487
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12483
12488
  });
@@ -12491,7 +12496,7 @@ export type CancelFulfillmentRequestMutation = {
12491
12496
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12492
12497
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12493
12498
  })>;
12494
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12499
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12495
12500
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12496
12501
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12497
12502
  });
@@ -12505,7 +12510,7 @@ export type MoveFulfillmentRequestMutation = {
12505
12510
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12506
12511
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12507
12512
  })>;
12508
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12513
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12509
12514
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12510
12515
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12511
12516
  });
@@ -12519,7 +12524,7 @@ export type SplitFulfillmentRequestMutation = {
12519
12524
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12520
12525
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12521
12526
  })>;
12522
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12527
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12523
12528
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12524
12529
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12525
12530
  });
@@ -12533,7 +12538,7 @@ export type MergeFulfillmentRequestsMutation = {
12533
12538
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12534
12539
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12535
12540
  })>;
12536
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12541
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12537
12542
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12538
12543
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12539
12544
  });
@@ -12547,7 +12552,7 @@ export type AddFulfillmentRequestHoldMutation = {
12547
12552
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12548
12553
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12549
12554
  })>;
12550
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12555
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12551
12556
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12552
12557
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12553
12558
  });
@@ -12561,7 +12566,7 @@ export type RemoveFulfillmentRequestHoldMutation = {
12561
12566
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12562
12567
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12563
12568
  })>;
12564
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12569
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12565
12570
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12566
12571
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12567
12572
  });
@@ -12575,7 +12580,7 @@ export type ChangeFulfillmentRequestDeliveryMethodMutation = {
12575
12580
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12576
12581
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12577
12582
  })>;
12578
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12583
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12579
12584
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12580
12585
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12581
12586
  });
@@ -12589,7 +12594,7 @@ export type CreateFulfillmentRequestsForOrderMutation = {
12589
12594
  destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
12590
12595
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
12591
12596
  })>;
12592
- assignedLocation: Pick<StockLocation, 'id' | 'name'>;
12597
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>;
12593
12598
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>;
12594
12599
  lines: Array<Pick<FulfillmentRequestLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
12595
12600
  })>;
@@ -2340,7 +2340,12 @@ export type FulfillmentLineInput = {
2340
2340
  quantity: Scalars['Int']['input'];
2341
2341
  };
2342
2342
  export type FulfillmentRequest = {
2343
- assignedLocation: StockLocation;
2343
+ /**
2344
+ * The stock location the request ships from. Null for a request nothing ships
2345
+ * from one: a DIGITAL or NONE request planned on a channel without a stock
2346
+ * location. SHIP and PICKUP requests always carry one.
2347
+ */
2348
+ assignedLocation?: Maybe<StockLocation>;
2344
2349
  createdAt: Scalars['DateTime']['output'];
2345
2350
  deliveryMethod: DeliveryMethod;
2346
2351
  destinationAddress?: Maybe<OrderAddress>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgecart/sdk",
3
- "version": "1.202610071755.0",
3
+ "version": "1.202610072140.0",
4
4
  "description": "ForgeCart Client SDK",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -3399,7 +3399,12 @@ export type FulfillmentLineInput = {
3399
3399
  };
3400
3400
 
3401
3401
  export type FulfillmentRequest = {
3402
- assignedLocation: StockLocation;
3402
+ /**
3403
+ * The stock location the request ships from. Null for a request nothing ships
3404
+ * from one: a DIGITAL or NONE request planned on a channel without a stock
3405
+ * location. SHIP and PICKUP requests always carry one.
3406
+ */
3407
+ assignedLocation?: Maybe<StockLocation>;
3403
3408
  createdAt: Scalars['DateTime']['output'];
3404
3409
  deliveryMethod: DeliveryMethod;
3405
3410
  destinationAddress?: Maybe<OrderAddress>;
@@ -25176,7 +25181,7 @@ export type FulfillmentRequestFieldFragment = (
25176
25181
  >
25177
25182
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25178
25183
  )>,
25179
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25184
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25180
25185
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25181
25186
  lines: Array<Pick<
25182
25187
  FulfillmentRequestLine,
@@ -25218,7 +25223,7 @@ export type FulfillmentRequestQuery = { fulfillmentRequest?: Maybe<(
25218
25223
  >
25219
25224
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25220
25225
  )>,
25221
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25226
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25222
25227
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25223
25228
  lines: Array<Pick<
25224
25229
  FulfillmentRequestLine,
@@ -25260,7 +25265,7 @@ export type FulfillmentRequestsForOrderQuery = { fulfillmentRequestsForOrder: Ar
25260
25265
  >
25261
25266
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25262
25267
  )>,
25263
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25268
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25264
25269
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25265
25270
  lines: Array<Pick<
25266
25271
  FulfillmentRequestLine,
@@ -25309,7 +25314,7 @@ export type AcceptFulfillmentRequestMutation = { acceptFulfillmentRequest: (
25309
25314
  >
25310
25315
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25311
25316
  )>,
25312
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25317
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25313
25318
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25314
25319
  lines: Array<Pick<
25315
25320
  FulfillmentRequestLine,
@@ -25351,7 +25356,7 @@ export type CancelFulfillmentRequestMutation = { cancelFulfillmentRequest: (
25351
25356
  >
25352
25357
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25353
25358
  )>,
25354
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25359
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25355
25360
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25356
25361
  lines: Array<Pick<
25357
25362
  FulfillmentRequestLine,
@@ -25393,7 +25398,7 @@ export type MoveFulfillmentRequestMutation = { moveFulfillmentRequest: (
25393
25398
  >
25394
25399
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25395
25400
  )>,
25396
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25401
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25397
25402
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25398
25403
  lines: Array<Pick<
25399
25404
  FulfillmentRequestLine,
@@ -25435,7 +25440,7 @@ export type SplitFulfillmentRequestMutation = { splitFulfillmentRequest: (
25435
25440
  >
25436
25441
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25437
25442
  )>,
25438
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25443
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25439
25444
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25440
25445
  lines: Array<Pick<
25441
25446
  FulfillmentRequestLine,
@@ -25477,7 +25482,7 @@ export type MergeFulfillmentRequestsMutation = { mergeFulfillmentRequests: (
25477
25482
  >
25478
25483
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25479
25484
  )>,
25480
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25485
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25481
25486
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25482
25487
  lines: Array<Pick<
25483
25488
  FulfillmentRequestLine,
@@ -25519,7 +25524,7 @@ export type AddFulfillmentRequestHoldMutation = { addFulfillmentRequestHold: (
25519
25524
  >
25520
25525
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25521
25526
  )>,
25522
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25527
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25523
25528
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25524
25529
  lines: Array<Pick<
25525
25530
  FulfillmentRequestLine,
@@ -25561,7 +25566,7 @@ export type RemoveFulfillmentRequestHoldMutation = { removeFulfillmentRequestHol
25561
25566
  >
25562
25567
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25563
25568
  )>,
25564
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25569
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25565
25570
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25566
25571
  lines: Array<Pick<
25567
25572
  FulfillmentRequestLine,
@@ -25603,7 +25608,7 @@ export type ChangeFulfillmentRequestDeliveryMethodMutation = { changeFulfillment
25603
25608
  >
25604
25609
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25605
25610
  )>,
25606
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25611
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25607
25612
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25608
25613
  lines: Array<Pick<
25609
25614
  FulfillmentRequestLine,
@@ -25645,7 +25650,7 @@ export type CreateFulfillmentRequestsForOrderMutation = { createFulfillmentReque
25645
25650
  >
25646
25651
  & { country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>> }
25647
25652
  )>,
25648
- assignedLocation: Pick<StockLocation, 'id' | 'name'>,
25653
+ assignedLocation?: Maybe<Pick<StockLocation, 'id' | 'name'>>,
25649
25654
  fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state'>>,
25650
25655
  lines: Array<Pick<
25651
25656
  FulfillmentRequestLine,
@@ -2787,7 +2787,12 @@ export type FulfillmentLineInput = {
2787
2787
  };
2788
2788
 
2789
2789
  export type FulfillmentRequest = {
2790
- assignedLocation: StockLocation;
2790
+ /**
2791
+ * The stock location the request ships from. Null for a request nothing ships
2792
+ * from one: a DIGITAL or NONE request planned on a channel without a stock
2793
+ * location. SHIP and PICKUP requests always carry one.
2794
+ */
2795
+ assignedLocation?: Maybe<StockLocation>;
2791
2796
  createdAt: Scalars['DateTime']['output'];
2792
2797
  deliveryMethod: DeliveryMethod;
2793
2798
  destinationAddress?: Maybe<OrderAddress>;