@epcc-sdk/sdks-shopper 0.0.22 → 0.0.24

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.
@@ -1180,10 +1180,16 @@ export declare const getCustomerOrdersOptions: (options?: Options<GetCustomerOrd
1180
1180
  data?: Array<import("../types.gen").OrderResponse>;
1181
1181
  links?: import("../types.gen").ResponsePageLinks;
1182
1182
  meta?: import("../types.gen").ResponseMetaOrders;
1183
+ included?: {
1184
+ items?: Array<import("../types.gen").OrderItemResponse>;
1185
+ };
1183
1186
  }, Error, import("../types.gen").ResponseData & {
1184
1187
  data?: Array<import("../types.gen").OrderResponse>;
1185
1188
  links?: import("../types.gen").ResponsePageLinks;
1186
1189
  meta?: import("../types.gen").ResponseMetaOrders;
1190
+ included?: {
1191
+ items?: Array<import("../types.gen").OrderItemResponse>;
1192
+ };
1187
1193
  }, (Pick<Options<GetCustomerOrdersData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1188
1194
  _id: string;
1189
1195
  _infinite?: boolean;
@@ -1192,6 +1198,9 @@ export declare const getCustomerOrdersOptions: (options?: Options<GetCustomerOrd
1192
1198
  data?: Array<import("../types.gen").OrderResponse>;
1193
1199
  links?: import("../types.gen").ResponsePageLinks;
1194
1200
  meta?: import("../types.gen").ResponseMetaOrders;
1201
+ included?: {
1202
+ items?: Array<import("../types.gen").OrderItemResponse>;
1203
+ };
1195
1204
  }, (Pick<Options<GetCustomerOrdersData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1196
1205
  _id: string;
1197
1206
  _infinite?: boolean;
@@ -1205,6 +1214,9 @@ export declare const getCustomerOrdersOptions: (options?: Options<GetCustomerOrd
1205
1214
  data?: Array<import("../types.gen").OrderResponse>;
1206
1215
  links?: import("../types.gen").ResponsePageLinks;
1207
1216
  meta?: import("../types.gen").ResponseMetaOrders;
1217
+ included?: {
1218
+ items?: Array<import("../types.gen").OrderItemResponse>;
1219
+ };
1208
1220
  };
1209
1221
  [dataTagErrorSymbol]: Error;
1210
1222
  };
@@ -1215,14 +1227,23 @@ export declare const getAnOrderQueryKey: (options: Options<GetAnOrderData>) => (
1215
1227
  })[];
1216
1228
  export declare const getAnOrderOptions: (options: Options<GetAnOrderData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").ResponseData & {
1217
1229
  data?: import("../types.gen").OrderResponse;
1230
+ included?: {
1231
+ items?: Array<import("../types.gen").OrderItemResponse>;
1232
+ };
1218
1233
  }, Error, import("../types.gen").ResponseData & {
1219
1234
  data?: import("../types.gen").OrderResponse;
1235
+ included?: {
1236
+ items?: Array<import("../types.gen").OrderItemResponse>;
1237
+ };
1220
1238
  }, (Pick<Options<GetAnOrderData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1221
1239
  _id: string;
1222
1240
  _infinite?: boolean;
1223
1241
  })[]>, "queryFn"> & {
1224
1242
  queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").ResponseData & {
1225
1243
  data?: import("../types.gen").OrderResponse;
1244
+ included?: {
1245
+ items?: Array<import("../types.gen").OrderItemResponse>;
1246
+ };
1226
1247
  }, (Pick<Options<GetAnOrderData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1227
1248
  _id: string;
1228
1249
  _infinite?: boolean;
@@ -1234,6 +1255,9 @@ export declare const getAnOrderOptions: (options: Options<GetAnOrderData>) => im
1234
1255
  })[] & {
1235
1256
  [dataTagSymbol]: import("../types.gen").ResponseData & {
1236
1257
  data?: import("../types.gen").OrderResponse;
1258
+ included?: {
1259
+ items?: Array<import("../types.gen").OrderItemResponse>;
1260
+ };
1237
1261
  };
1238
1262
  [dataTagErrorSymbol]: Error;
1239
1263
  };
@@ -2047,6 +2047,9 @@ export declare const getCustomerOrders: <ThrowOnError extends boolean = false>(o
2047
2047
  data?: Array<import("./types.gen").OrderResponse>;
2048
2048
  links?: import("./types.gen").ResponsePageLinks;
2049
2049
  meta?: import("./types.gen").ResponseMetaOrders;
2050
+ included?: {
2051
+ items?: Array<import("./types.gen").OrderItemResponse>;
2052
+ };
2050
2053
  }, import("./types.gen").ResponseError, ThrowOnError>;
2051
2054
  /**
2052
2055
  * Get an Order
@@ -2054,6 +2057,9 @@ export declare const getCustomerOrders: <ThrowOnError extends boolean = false>(o
2054
2057
  */
2055
2058
  export declare const getAnOrder: <ThrowOnError extends boolean = false>(options: Options<GetAnOrderData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResponseData & {
2056
2059
  data?: import("./types.gen").OrderResponse;
2060
+ included?: {
2061
+ items?: Array<import("./types.gen").OrderItemResponse>;
2062
+ };
2057
2063
  }, import("./types.gen").ResponseError, ThrowOnError>;
2058
2064
  /**
2059
2065
  * Update an Order
@@ -2959,6 +2959,16 @@ export type OrderResponse = {
2959
2959
  meta?: OrderMeta;
2960
2960
  billing_address?: BillingAddress;
2961
2961
  contact?: Contact;
2962
+ customer?: {
2963
+ /**
2964
+ * The name of the customer.
2965
+ */
2966
+ name?: string;
2967
+ /**
2968
+ * The email address of the customer.
2969
+ */
2970
+ email?: string;
2971
+ };
2962
2972
  shipping_address?: ShippingAddress;
2963
2973
  relationships?: {
2964
2974
  items?: RelationshipArray;
@@ -8569,7 +8579,20 @@ export type GetCustomerOrdersData = {
8569
8579
  "x-moltin-customer-token"?: string;
8570
8580
  };
8571
8581
  path?: never;
8572
- query?: never;
8582
+ query?: {
8583
+ /**
8584
+ * The number of records to offset the results by.
8585
+ */
8586
+ "page[offset]"?: BigInt;
8587
+ /**
8588
+ * The number of records per page. The maximum limit is 100.
8589
+ */
8590
+ "page[limit]"?: BigInt;
8591
+ /**
8592
+ * A comma-separated list of resources to include. See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
8593
+ */
8594
+ include?: string;
8595
+ };
8573
8596
  url: "/v2/orders";
8574
8597
  };
8575
8598
  export type GetCustomerOrdersErrors = {
@@ -8584,6 +8607,9 @@ export type GetCustomerOrdersResponses = {
8584
8607
  data?: Array<OrderResponse>;
8585
8608
  links?: ResponsePageLinks;
8586
8609
  meta?: ResponseMetaOrders;
8610
+ included?: {
8611
+ items?: Array<OrderItemResponse>;
8612
+ };
8587
8613
  };
8588
8614
  };
8589
8615
  export type GetCustomerOrdersResponse = GetCustomerOrdersResponses[keyof GetCustomerOrdersResponses];
@@ -8595,7 +8621,20 @@ export type GetAnOrderData = {
8595
8621
  */
8596
8622
  orderID: string;
8597
8623
  };
8598
- query?: never;
8624
+ query?: {
8625
+ /**
8626
+ * The number of records to offset the results by.
8627
+ */
8628
+ "page[offset]"?: BigInt;
8629
+ /**
8630
+ * The number of records per page. The maximum limit is 100.
8631
+ */
8632
+ "page[limit]"?: BigInt;
8633
+ /**
8634
+ * A comma-separated list of resources to include. See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
8635
+ */
8636
+ include?: string;
8637
+ };
8599
8638
  url: "/v2/orders/{orderID}";
8600
8639
  };
8601
8640
  export type GetAnOrderErrors = {
@@ -8611,6 +8650,9 @@ export type GetAnOrderResponses = {
8611
8650
  */
8612
8651
  200: ResponseData & {
8613
8652
  data?: OrderResponse;
8653
+ included?: {
8654
+ items?: Array<OrderItemResponse>;
8655
+ };
8614
8656
  };
8615
8657
  };
8616
8658
  export type GetAnOrderResponse = GetAnOrderResponses[keyof GetAnOrderResponses];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epcc-sdk/sdks-shopper",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {