@ikas/storefront-api 6.1.0-beta.60 → 6.1.0-beta.62
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.
- package/build/__api/models/UpdatePaypalOrderAddressInput.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderCustomerInput.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderInput.d.ts +16 -0
- package/build/__api/mutations/getPaypalClientId.d.ts +1 -1
- package/build/__api/mutations/getPaypalClientId.js +1 -1
- package/build/__api/types/index.d.ts +16 -0
- package/package.json +5 -5
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class UpdatePaypalOrderAddressInputData {
|
|
3
|
+
city: string | null;
|
|
4
|
+
country: string | null;
|
|
5
|
+
postalCode: string | null;
|
|
6
|
+
state: string | null;
|
|
7
|
+
constructor(data?: Partial<UpdatePaypalOrderAddressInputData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class UpdatePaypalOrderAddressInput extends UpdatePaypalOrderAddressInputData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialUpdatePaypalOrderAddressInput = Partial<UpdatePaypalOrderAddressInput>;
|
|
12
|
+
export declare type ReadOnlyUpdatePaypalOrderAddressInput = DeepReadonly<UpdatePaypalOrderAddressInput>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class UpdatePaypalOrderCustomerInputData {
|
|
3
|
+
email: string | null;
|
|
4
|
+
firstName: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
lastName: string | null;
|
|
7
|
+
constructor(data?: Partial<UpdatePaypalOrderCustomerInputData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class UpdatePaypalOrderCustomerInput extends UpdatePaypalOrderCustomerInputData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialUpdatePaypalOrderCustomerInput = Partial<UpdatePaypalOrderCustomerInput>;
|
|
12
|
+
export declare type ReadOnlyUpdatePaypalOrderCustomerInput = DeepReadonly<UpdatePaypalOrderCustomerInput>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { UpdatePaypalOrderAddressInputData } from "./UpdatePaypalOrderAddressInput";
|
|
3
|
+
import { UpdatePaypalOrderCustomerInputData } from "./UpdatePaypalOrderCustomerInput";
|
|
4
|
+
export declare class UpdatePaypalOrderInputData {
|
|
5
|
+
address: UpdatePaypalOrderAddressInputData | null;
|
|
6
|
+
cartId: string;
|
|
7
|
+
customer: UpdatePaypalOrderCustomerInputData | null;
|
|
8
|
+
shippingSettingsId: string | null;
|
|
9
|
+
shippingZoneRateId: string | null;
|
|
10
|
+
transactionId: string;
|
|
11
|
+
constructor(data?: Partial<UpdatePaypalOrderInputData>);
|
|
12
|
+
}
|
|
13
|
+
export declare class UpdatePaypalOrderInput extends UpdatePaypalOrderInputData {
|
|
14
|
+
}
|
|
15
|
+
export declare type PartialUpdatePaypalOrderInput = Partial<UpdatePaypalOrderInput>;
|
|
16
|
+
export declare type ReadOnlyUpdatePaypalOrderInput = DeepReadonly<UpdatePaypalOrderInput>;
|
|
@@ -3,7 +3,7 @@ import { CreateSaleTransactionWithCartInput, GetPaypalClientIdResponse } from ".
|
|
|
3
3
|
declare const getPaypalClientId: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<GetPaypalClientIdResponse> | APIResponse<undefined>>;
|
|
4
4
|
export default getPaypalClientId;
|
|
5
5
|
export declare type QueryParams = {
|
|
6
|
-
input
|
|
6
|
+
input?: CreateSaleTransactionWithCartInput | null;
|
|
7
7
|
};
|
|
8
8
|
export declare enum ResponseField {
|
|
9
9
|
CLIENT_ID = "clientId",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as a,fetchQuery as i}from"@ikas/fe-api-client";var r,l=function(r,l,u){return t(void 0,void 0,void 0,(function(){var t,s,c,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i({operationName:"getPaypalClientId",config:u,variables:r,allReturnFields:o,fields:l,query:function(t){return"\n\t\t\t\tmutation getPaypalClientId (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput
|
|
1
|
+
import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as a,fetchQuery as i}from"@ikas/fe-api-client";var r,l=function(r,l,u){return t(void 0,void 0,void 0,(function(){var t,s,c,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i({operationName:"getPaypalClientId",config:u,variables:r,allReturnFields:o,fields:l,query:function(t){return"\n\t\t\t\tmutation getPaypalClientId (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput,\n\t\t\t\t) {\n\t\t\t\t\tgetPaypalClientId (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=n.sent(),s=t.data,c=t.errors,[2,new a(null==s?void 0:s.getPaypalClientId,c)];case 2:return d=n.sent(),[2,e(d)];case 3:return[2]}}))}))},o="{clientId merchantClientId merchantId }";!function(t){t.CLIENT_ID="clientId",t.MERCHANT_CLIENT_ID="merchantClientId",t.MERCHANT_ID="merchantId"}(r||(r={}));export{r as ResponseField,l as default};
|
|
@@ -3522,8 +3522,24 @@ export interface UpdateCartCampaignOfferInput {
|
|
|
3522
3522
|
quantity?: number | null;
|
|
3523
3523
|
variantId: string;
|
|
3524
3524
|
}
|
|
3525
|
+
export interface UpdatePaypalOrderAddressInput {
|
|
3526
|
+
city?: string | null;
|
|
3527
|
+
country?: string | null;
|
|
3528
|
+
postalCode?: string | null;
|
|
3529
|
+
state?: string | null;
|
|
3530
|
+
}
|
|
3531
|
+
export interface UpdatePaypalOrderCustomerInput {
|
|
3532
|
+
email?: string | null;
|
|
3533
|
+
firstName?: string | null;
|
|
3534
|
+
id?: string | null;
|
|
3535
|
+
lastName?: string | null;
|
|
3536
|
+
}
|
|
3525
3537
|
export interface UpdatePaypalOrderInput {
|
|
3538
|
+
address?: UpdatePaypalOrderAddressInput | null;
|
|
3526
3539
|
cartId: string;
|
|
3540
|
+
customer?: UpdatePaypalOrderCustomerInput | null;
|
|
3541
|
+
shippingSettingsId?: string | null;
|
|
3542
|
+
shippingZoneRateId?: string | null;
|
|
3527
3543
|
transactionId: string;
|
|
3528
3544
|
}
|
|
3529
3545
|
export declare enum StorefrontPopupDeviceTypeEnum {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-api",
|
|
3
|
-
"version": "6.1.0-beta.
|
|
3
|
+
"version": "6.1.0-beta.62",
|
|
4
4
|
"author": "ikas",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "API functions that returns models from the ikas-storefront-models package.",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
20
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
21
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
20
|
+
"@ikas/storefront-config": "^6.1.0-beta.62",
|
|
21
|
+
"@ikas/storefront-models": "^6.1.0-beta.62",
|
|
22
22
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
23
23
|
"rollup-plugin-rename-node-modules": "^1.2.0",
|
|
24
24
|
"prettier": "^2.2.1",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@ikas/fe-api-client": "^1.0.19"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
38
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
37
|
+
"@ikas/storefront-config": "^6.1.0-beta.62",
|
|
38
|
+
"@ikas/storefront-models": "^6.1.0-beta.62",
|
|
39
39
|
"@ikas/fe-api-client": "^1.0.18",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|