@whiplashmerch/whiplash-api-client 3.2.38 → 3.2.39

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.
@@ -1,4 +1,4 @@
1
- import { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesCount, ApiV21EntitiesCustomer, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesShop, ApiV2EntitiesCount, ApiV2EntitiesCustomer, ApiV2EntitiesResult, ApiV2EntitiesShop, GetApiV21CustomersCountParams, GetApiV21CustomersIdCallTraitParams, GetApiV21CustomersIdMetaFieldsParams, GetApiV21CustomersIdTraitsParams, GetApiV21CustomersParams, GetApiV2CustomersCountParams, GetApiV2CustomersIdCallTraitParams, GetApiV2CustomersIdMetaFieldsParams, GetApiV2CustomersIdTraitsParams, GetApiV2CustomersParams, PostApiV21CustomersRequest, PostApiV2CustomersRequest, PutApiV21CustomersIdCallActionRequest, PutApiV21CustomersIdCallAsyncActionRequest, PutApiV21CustomersIdMetaFieldsRequest, PutApiV21CustomersIdRequest, PutApiV2CustomersIdCallActionRequest, PutApiV2CustomersIdCallAsyncActionRequest, PutApiV2CustomersIdMetaFieldsRequest, PutApiV2CustomersIdRequest } from "./data-contracts";
1
+ import { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesCount, ApiV21EntitiesCustomer, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesShop, ApiV2EntitiesCount, ApiV2EntitiesCustomer, ApiV2EntitiesResult, ApiV2EntitiesShop, GetApiV21CustomersCountParams, GetApiV21CustomersIdCallTraitParams, GetApiV21CustomersIdMetaFieldsParams, GetApiV21CustomersIdTraitsParams, GetApiV21CustomersParams, GetApiV2CustomersCountParams, GetApiV2CustomersIdCallTraitParams, GetApiV2CustomersIdMetaFieldsParams, GetApiV2CustomersIdTraitsParams, GetApiV2CustomersParams, PostApiV21CustomersIdShopsHandoffRequest, PostApiV21CustomersRequest, PostApiV2CustomersIdShopsHandoffRequest, PostApiV2CustomersRequest, PutApiV21CustomersIdCallActionRequest, PutApiV21CustomersIdCallAsyncActionRequest, PutApiV21CustomersIdMetaFieldsRequest, PutApiV21CustomersIdRequest, PutApiV2CustomersIdCallActionRequest, PutApiV2CustomersIdCallAsyncActionRequest, PutApiV2CustomersIdMetaFieldsRequest, PutApiV2CustomersIdRequest } from "./data-contracts";
2
2
  import { HttpClient, RequestParams } from "./http-client";
3
3
  /**
4
4
  * @description Get all customers
@@ -126,6 +126,15 @@ export declare const putApiV2CustomersIdMetaFields: (client: HttpClient, id: num
126
126
  * @request GET:/api/v2/customers/{id}/shops
127
127
  */
128
128
  export declare const getApiV2CustomersIdShops: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesShop[]>;
129
+ /**
130
+ * @description Upsert a Shopify shop connection
131
+ *
132
+ * @tags customers
133
+ * @name PostApiV2CustomersIdShopsHandoff
134
+ * @summary Create or update a Shopify shop via OAuth handoff
135
+ * @request POST:/api/v2/customers/{id}/shops/handoff
136
+ */
137
+ export declare const postApiV2CustomersIdShopsHandoff: (client: HttpClient, id: number, data: PostApiV2CustomersIdShopsHandoffRequest, params?: RequestParams) => Promise<any>;
129
138
  /**
130
139
  * @description Get the specified customers traits
131
140
  *
@@ -261,6 +270,15 @@ export declare const putApiV21CustomersIdMetaFields: (client: HttpClient, id: nu
261
270
  * @request GET:/api/v2.1/customers/{id}/shops
262
271
  */
263
272
  export declare const getApiV21CustomersIdShops: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesShop[]>;
273
+ /**
274
+ * @description Upsert a Shopify shop connection
275
+ *
276
+ * @tags customers
277
+ * @name PostApiV21CustomersIdShopsHandoff
278
+ * @summary Create or update a Shopify shop via OAuth handoff
279
+ * @request POST:/api/v2.1/customers/{id}/shops/handoff
280
+ */
281
+ export declare const postApiV21CustomersIdShopsHandoff: (client: HttpClient, id: number, data: PostApiV21CustomersIdShopsHandoffRequest, params?: RequestParams) => Promise<any>;
264
282
  /**
265
283
  * @description Get the specified customers traits
266
284
  *
@@ -17337,6 +17337,12 @@ export interface PostApiV21CurrenciesRequest {
17337
17337
  /** the currency symbol */
17338
17338
  symbol?: string;
17339
17339
  }
17340
+ export interface PostApiV21CustomersIdShopsHandoffRequest {
17341
+ /** Shopify access token */
17342
+ access_token: string;
17343
+ /** Shopify domain (e.g. my-store.myshopify.com) */
17344
+ shop_domain: string;
17345
+ }
17340
17346
  export interface PostApiV21CustomersRequest {
17341
17347
  /** Customer billing address line 1. */
17342
17348
  billing_address1?: string;
@@ -20839,6 +20845,12 @@ export interface PostApiV2CurrenciesRequest {
20839
20845
  /** the currency symbol */
20840
20846
  symbol?: string;
20841
20847
  }
20848
+ export interface PostApiV2CustomersIdShopsHandoffRequest {
20849
+ /** Shopify access token */
20850
+ access_token: string;
20851
+ /** Shopify domain (e.g. my-store.myshopify.com) */
20852
+ shop_domain: string;
20853
+ }
20842
20854
  export interface PostApiV2CustomersRequest {
20843
20855
  /** Customer billing address line 1. */
20844
20856
  billing_address1?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whiplashmerch/whiplash-api-client",
3
- "version": "3.2.38",
3
+ "version": "3.2.39",
4
4
  "description": "",
5
5
  "devDependencies": {},
6
6
  "scripts": {