@ikas/storefront-api 6.1.0-beta.2 → 6.1.0-beta.200
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/AddItemToCartInput.d.ts +2 -0
- package/build/__api/models/CartV2.d.ts +3 -0
- package/build/__api/models/CheckoutSettings.d.ts +1 -0
- package/build/__api/models/CustomerReview.d.ts +6 -0
- package/build/__api/models/CustomerReviewProductModel.d.ts +15 -0
- package/build/__api/models/CustomerReviewReplyInfo.d.ts +10 -0
- package/build/__api/models/GetCustomerReviewImageUploadUrlResponse.d.ts +11 -0
- package/build/__api/models/HepsipayFrameInitResponse.d.ts +11 -0
- package/build/__api/models/ListOrderTransactionWithPricesResponse.d.ts +1 -0
- package/build/__api/models/OrderGiftCardLine.d.ts +12 -0
- package/build/__api/models/OrderLineItem.d.ts +5 -0
- package/build/__api/models/OrderLineItemCustomerSubscriptionPlan.d.ts +9 -0
- package/build/__api/models/OrderLineItemSubscriptionPlan.d.ts +12 -0
- package/build/__api/models/OrderLineItemSubscriptionPlanPeriod.d.ts +19 -0
- package/build/__api/models/ProductSearchResponse.d.ts +2 -0
- package/build/__api/models/SearchInput.d.ts +2 -0
- package/build/__api/models/SearchSuggestion.d.ts +12 -0
- package/build/__api/models/SubscriptionPlanDiscount.d.ts +11 -0
- 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/addItemToCart.d.ts +13 -0
- package/build/__api/mutations/addItemToCart.js +1 -1
- package/build/__api/mutations/createPaypalOrder.d.ts +2 -0
- package/build/__api/mutations/createPaypalOrder.js +1 -1
- package/build/__api/mutations/customerLogin.d.ts +6 -2
- package/build/__api/mutations/customerLogin.js +1 -1
- package/build/__api/mutations/getCustomerReviewImageUploadUrl.d.ts +13 -0
- package/build/__api/mutations/getPaypalClientId.d.ts +1 -1
- package/build/__api/mutations/getPaypalClientId.js +1 -1
- package/build/__api/mutations/hepsipayFrameInit.d.ts +13 -0
- package/build/__api/mutations/hepsipayFrameInit.js +1 -0
- package/build/__api/mutations/registerCustomer.d.ts +8 -4
- package/build/__api/mutations/registerCustomer.js +1 -1
- package/build/__api/mutations/removeGiftCardFromCart.d.ts +509 -0
- package/build/__api/mutations/removeGiftCardFromCart.js +1 -0
- package/build/__api/mutations/resendCustomerPhoneVerificationCode.d.ts +2 -5
- package/build/__api/mutations/resendCustomerPhoneVerificationCode.js +1 -1
- package/build/__api/mutations/updatePaypalOrder.d.ts +8 -0
- package/build/__api/mutations/updatePaypalOrder.js +1 -0
- package/build/__api/mutations/validateCustomerPhoneVerificationCode.d.ts +1 -0
- package/build/__api/mutations/validateCustomerPhoneVerificationCode.js +1 -1
- package/build/__api/mutations/validateOTPCode.d.ts +97 -0
- package/build/__api/mutations/validateOTPCode.js +1 -0
- package/build/__api/queries/getAvailableStockLocations.d.ts +1 -0
- package/build/__api/queries/getAvailableStockLocations.js +1 -1
- package/build/__api/queries/getCart.d.ts +13 -0
- package/build/__api/queries/getCartById.d.ts +18 -1
- package/build/__api/queries/getCartById.js +1 -1
- package/build/__api/queries/getCheckoutByCartId.d.ts +13 -0
- package/build/__api/queries/getCheckoutById.d.ts +13 -0
- package/build/__api/queries/getCustomerOrders.d.ts +19 -0
- package/build/__api/queries/getCustomerOrders.js +1 -1
- package/build/__api/queries/getOrder.d.ts +19 -0
- package/build/__api/queries/getStoreCreditBalance.d.ts +25 -0
- package/build/__api/queries/getStoreCreditBalance.js +1 -0
- package/build/__api/queries/listCheckoutSettings.d.ts +1 -0
- package/build/__api/queries/listCheckoutSettings.js +1 -1
- package/build/__api/queries/listCustomerReviewSummary.d.ts +1 -0
- package/build/__api/queries/listCustomerReviews.d.ts +12 -0
- package/build/__api/queries/listCustomerReviews.js +1 -1
- package/build/__api/queries/listOrderTransactionsWithPrices.d.ts +1 -0
- package/build/__api/queries/listOrderTransactionsWithPrices.js +1 -1
- package/build/__api/queries/searchProducts.d.ts +21 -0
- package/build/__api/queries/searchProducts.js +1 -1
- package/build/__api/types/index.d.ts +196 -12
- package/build/__api/types/index.js +1 -1
- package/build/api/cart/index.d.ts +3 -1
- package/build/api/cart/index.js +1 -1
- package/build/api/checkout/index.d.ts +7 -2
- package/build/api/checkout/index.js +1 -1
- package/build/api/customer/index.d.ts +37 -6
- package/build/api/customer/index.js +1 -1
- package/build/api/product/index.d.ts +1 -0
- package/build/api/product/index.js +1 -1
- package/build/api/storefront/index.d.ts +5 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +1 -1
- package/build/index2.js +1 -1
- package/package.json +5 -5
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
/** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
|
|
1
2
|
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
3
|
import { CreateSaleTransactionWithCartInput, CreatePaypalOrderResponse } from "../types";
|
|
3
4
|
declare const createPaypalOrder: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CreatePaypalOrderResponse> | APIResponse<undefined>>;
|
|
4
5
|
export default createPaypalOrder;
|
|
5
6
|
export declare type QueryParams = {
|
|
6
7
|
input: CreateSaleTransactionWithCartInput;
|
|
8
|
+
isPayNow?: boolean | null;
|
|
7
9
|
};
|
|
8
10
|
export declare enum ResponseField {
|
|
9
11
|
FAIL_URL = "failUrl",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as
|
|
1
|
+
import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as e,fetchQuery as a}from"@ikas/fe-api-client";var i,o=function(i,o,l){return t(void 0,void 0,void 0,(function(){var t,u,c,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,a({operationName:"createPaypalOrder",config:l,variables:i,allReturnFields:s,fields:o,query:function(t){return"\n\t\t\t\tmutation createPaypalOrder (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t\t$isPayNow: Boolean,\n\t\t\t\t) {\n\t\t\t\t\tcreatePaypalOrder (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t\tisPayNow: $isPayNow,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=n.sent(),u=t.data,c=t.errors,[2,new e(null==u?void 0:u.createPaypalOrder,c)];case 2:return d=n.sent(),[2,r(d)];case 3:return[2]}}))}))},s="{failUrl returnUrl sessionToken transactionId }";!function(t){t.FAIL_URL="failUrl",t.RETURN_URL="returnUrl",t.SESSION_TOKEN="sessionToken",t.TRANSACTION_ID="transactionId"}(i||(i={}));export{i as ResponseField,o as default};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
/** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
|
|
1
2
|
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
3
|
import { CustomerLoginResponse } from "../types";
|
|
3
4
|
declare const customerLogin: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CustomerLoginResponse> | APIResponse<undefined>>;
|
|
4
5
|
export default customerLogin;
|
|
5
6
|
export declare type QueryParams = {
|
|
6
7
|
captchaToken?: string | null;
|
|
7
|
-
email
|
|
8
|
-
password
|
|
8
|
+
email?: string | null;
|
|
9
|
+
password?: string | null;
|
|
10
|
+
phone?: string | null;
|
|
9
11
|
};
|
|
10
12
|
export declare enum ResponseField {
|
|
11
13
|
CUSTOMER__ACCOUNT_STATUS = "customer.accountStatus",
|
|
@@ -89,6 +91,8 @@ export declare enum ResponseField {
|
|
|
89
91
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
90
92
|
CUSTOMER__TAG_IDS = "customer.tagIds",
|
|
91
93
|
CUSTOMER__UPDATED_AT = "customer.updatedAt",
|
|
94
|
+
FLOW_ID = "flowId",
|
|
95
|
+
OTP_SEND = "otpSend",
|
|
92
96
|
TOKEN = "token",
|
|
93
97
|
TOKEN_EXPIRY = "tokenExpiry"
|
|
94
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as S}from"@ikas/fe-api-client";var E,r=function(E,r,o){return t(void 0,void 0,void 0,(function(){var t,d,u,R;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,S({operationName:"customerLogin",config:o,variables:E,allReturnFields:T,fields:r,query:function(t){return"\n\t\t\t\tmutation customerLogin (\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String,\n\t\t\t\t\t$password: String,\n\t\t\t\t\t$phone: String,\n\t\t\t\t) {\n\t\t\t\t\tcustomerLogin (\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t\tphone: $phone,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),d=t.data,u=t.errors,[2,new s(null==d?void 0:d.customerLogin,u)];case 2:return R=e.sent(),[2,_(R)];case 3:return[2]}}))}))},T="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } flowId otpSend token tokenExpiry }";!function(t){t.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",t.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",t.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",t.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",t.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",t.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",t.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",t.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",t.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",t.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",t.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",t.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",t.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",t.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",t.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",t.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",t.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",t.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",t.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",t.CUSTOMER__ADDRESSES__ID="customer.addresses.id",t.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",t.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",t.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",t.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",t.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",t.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",t.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",t.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",t.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",t.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",t.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",t.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",t.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",t.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",t.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",t.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",t.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",t.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",t.CUSTOMER__BIRTH_DATE="customer.birthDate",t.CUSTOMER__CREATED_AT="customer.createdAt",t.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",t.CUSTOMER__CUSTOMER_SEGMENT_IDS="customer.customerSegmentIds",t.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",t.CUSTOMER__DELETED="customer.deleted",t.CUSTOMER__EMAIL="customer.email",t.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",t.CUSTOMER__FIRST_NAME="customer.firstName",t.CUSTOMER__FULL_NAME="customer.fullName",t.CUSTOMER__GENDER="customer.gender",t.CUSTOMER__ID="customer.id",t.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",t.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",t.CUSTOMER__LAST_NAME="customer.lastName",t.CUSTOMER__NOTE="customer.note",t.CUSTOMER__ORDER_COUNT="customer.orderCount",t.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",t.CUSTOMER__PHONE="customer.phone",t.CUSTOMER__PHONE_SUBSCRIPTION_STATUS="customer.phoneSubscriptionStatus",t.CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="customer.phoneSubscriptionStatusUpdatedAt",t.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",t.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",t.CUSTOMER__PRICE_LIST_ID="customer.priceListId",t.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",t.CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID="customer.priceListRules.priceListId",t.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",t.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",t.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",t.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",t.CUSTOMER__SMS_SUBSCRIPTION_STATUS="customer.smsSubscriptionStatus",t.CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT="customer.smsSubscriptionStatusUpdatedAt",t.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",t.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",t.CUSTOMER__TAG_IDS="customer.tagIds",t.CUSTOMER__UPDATED_AT="customer.updatedAt",t.FLOW_ID="flowId",t.OTP_SEND="otpSend",t.TOKEN="token",t.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,r as default};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
|
|
2
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
3
|
+
import { GetCustomerReviewImageUploadUrlResponse } from "../types";
|
|
4
|
+
declare const getCustomerReviewImageUploadUrl: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<undefined> | APIResponse<GetCustomerReviewImageUploadUrlResponse[]>>;
|
|
5
|
+
export default getCustomerReviewImageUploadUrl;
|
|
6
|
+
export declare type QueryParams = {
|
|
7
|
+
count: number;
|
|
8
|
+
};
|
|
9
|
+
export declare enum ResponseField {
|
|
10
|
+
FIELDS = "fields",
|
|
11
|
+
IMAGE_ID = "imageId",
|
|
12
|
+
UPLOAD_URL = "uploadUrl"
|
|
13
|
+
}
|
|
@@ -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};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
|
|
2
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
3
|
+
import { CreateSaleTransactionWithCartInput, HepsipayFrameInitResponse } from "../types";
|
|
4
|
+
declare const hepsipayFrameInit: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<HepsipayFrameInitResponse> | APIResponse<undefined>>;
|
|
5
|
+
export default hepsipayFrameInit;
|
|
6
|
+
export declare type QueryParams = {
|
|
7
|
+
input: CreateSaleTransactionWithCartInput;
|
|
8
|
+
};
|
|
9
|
+
export declare enum ResponseField {
|
|
10
|
+
FRAME_TOKEN = "frameToken",
|
|
11
|
+
FRAME_URL = "frameUrl",
|
|
12
|
+
TRANSACTION_ID = "transactionId"
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as r,fetchQuery as a}from"@ikas/fe-api-client";var i,s=function(i,s,u){return t(void 0,void 0,void 0,(function(){var t,p,c,l;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,a({operationName:"hepsipayFrameInit",config:u,variables:i,allReturnFields:o,fields:s,query:function(t){return"\n\t\t\t\tmutation hepsipayFrameInit (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t) {\n\t\t\t\t\thepsipayFrameInit (\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(),p=t.data,c=t.errors,[2,new r(null==p?void 0:p.hepsipayFrameInit,c)];case 2:return l=n.sent(),[2,e(l)];case 3:return[2]}}))}))},o="{frameToken frameUrl transactionId }";!function(t){t.FRAME_TOKEN="frameToken",t.FRAME_URL="frameUrl",t.TRANSACTION_ID="transactionId"}(i||(i={}));export{i as ResponseField,s as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
|
|
1
2
|
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
3
|
import { CustomerAttributeValueInput, CustomerLoginResponse } from "../types";
|
|
3
4
|
declare const registerCustomer: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CustomerLoginResponse> | APIResponse<undefined>>;
|
|
@@ -5,13 +6,14 @@ export default registerCustomer;
|
|
|
5
6
|
export declare type QueryParams = {
|
|
6
7
|
attributes?: CustomerAttributeValueInput[] | null;
|
|
7
8
|
captchaToken?: string | null;
|
|
8
|
-
email
|
|
9
|
-
firstName
|
|
9
|
+
email?: string | null;
|
|
10
|
+
firstName?: string | null;
|
|
11
|
+
flowId?: string | null;
|
|
10
12
|
isAcceptMarketing?: boolean | null;
|
|
11
|
-
lastName
|
|
13
|
+
lastName?: string | null;
|
|
12
14
|
locale?: string | null;
|
|
13
15
|
orderId?: string | null;
|
|
14
|
-
password
|
|
16
|
+
password?: string | null;
|
|
15
17
|
phone?: string | null;
|
|
16
18
|
preferredLanguage?: string | null;
|
|
17
19
|
};
|
|
@@ -88,6 +90,8 @@ export declare enum ResponseField {
|
|
|
88
90
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
89
91
|
CUSTOMER__TAG_IDS = "customer.tagIds",
|
|
90
92
|
CUSTOMER__UPDATED_AT = "customer.updatedAt",
|
|
93
|
+
FLOW_ID = "flowId",
|
|
94
|
+
OTP_SEND = "otpSend",
|
|
91
95
|
TOKEN = "token",
|
|
92
96
|
TOKEN_EXPIRY = "tokenExpiry"
|
|
93
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as _,fetchQuery as r}from"@ikas/fe-api-client";var S,E=function(S,E,a){return t(void 0,void 0,void 0,(function(){var t,o,u,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r({operationName:"registerCustomer",config:a,variables:S,allReturnFields:d,fields:E,query:function(t){return"\n\t\t\t\tmutation registerCustomer (\n\t\t\t\t\t$attributes: [CustomerAttributeValueInput!],\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String,\n\t\t\t\t\t$firstName: String,\n\t\t\t\t\t$flowId: String,\n\t\t\t\t\t$isAcceptMarketing: Boolean,\n\t\t\t\t\t$lastName: String,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$orderId: String,\n\t\t\t\t\t$password: String,\n\t\t\t\t\t$phone: String,\n\t\t\t\t\t$preferredLanguage: String,\n\t\t\t\t) {\n\t\t\t\t\tregisterCustomer (\n\t\t\t\t\t\tattributes: $attributes,\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tfirstName: $firstName,\n\t\t\t\t\t\tflowId: $flowId,\n\t\t\t\t\t\tisAcceptMarketing: $isAcceptMarketing,\n\t\t\t\t\t\tlastName: $lastName,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\torderId: $orderId,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t\tphone: $phone,\n\t\t\t\t\t\tpreferredLanguage: $preferredLanguage,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),o=t.data,u=t.errors,[2,new _(null==o?void 0:o.registerCustomer,u)];case 2:return i=e.sent(),[2,s(i)];case 3:return[2]}}))}))},d="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } flowId otpSend token tokenExpiry }";!function(t){t.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",t.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",t.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",t.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",t.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",t.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",t.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",t.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",t.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",t.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",t.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",t.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",t.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",t.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",t.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",t.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",t.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",t.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",t.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",t.CUSTOMER__ADDRESSES__ID="customer.addresses.id",t.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",t.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",t.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",t.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",t.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",t.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",t.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",t.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",t.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",t.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",t.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",t.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",t.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",t.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",t.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",t.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",t.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",t.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",t.CUSTOMER__CREATED_AT="customer.createdAt",t.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",t.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",t.CUSTOMER__DELETED="customer.deleted",t.CUSTOMER__EMAIL="customer.email",t.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",t.CUSTOMER__FIRST_NAME="customer.firstName",t.CUSTOMER__FULL_NAME="customer.fullName",t.CUSTOMER__ID="customer.id",t.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",t.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",t.CUSTOMER__LAST_NAME="customer.lastName",t.CUSTOMER__NOTE="customer.note",t.CUSTOMER__ORDER_COUNT="customer.orderCount",t.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",t.CUSTOMER__PHONE="customer.phone",t.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",t.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",t.CUSTOMER__PRICE_LIST_ID="customer.priceListId",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",t.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",t.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",t.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",t.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",t.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",t.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",t.CUSTOMER__TAG_IDS="customer.tagIds",t.CUSTOMER__UPDATED_AT="customer.updatedAt",t.FLOW_ID="flowId",t.OTP_SEND="otpSend",t.TOKEN="token",t.TOKEN_EXPIRY="tokenExpiry"}(S||(S={}));export{S as ResponseField,E as default};
|