@betterstore/sdk 0.3.82 → 0.3.83
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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -303,6 +303,10 @@ interface OTPSignupParams extends OTPLoginParams {
|
|
|
303
303
|
firstName: string;
|
|
304
304
|
lastName: string;
|
|
305
305
|
}
|
|
306
|
+
interface OTPVerifyParams {
|
|
307
|
+
token: string;
|
|
308
|
+
otp: string;
|
|
309
|
+
}
|
|
306
310
|
type OTPLoginResponse = {
|
|
307
311
|
success: true;
|
|
308
312
|
token: string;
|
|
@@ -333,7 +337,7 @@ declare class OTP {
|
|
|
333
337
|
constructor(apiClient: ReturnType<typeof createApiClient>);
|
|
334
338
|
signup(params: OTPSignupParams): Promise<OTPSignupResponse>;
|
|
335
339
|
login(params: OTPLoginParams): Promise<OTPLoginResponse>;
|
|
336
|
-
verify(
|
|
340
|
+
verify(params: OTPVerifyParams): Promise<OTPVerifyResponse>;
|
|
337
341
|
}
|
|
338
342
|
|
|
339
343
|
declare class Auth {
|
|
@@ -505,4 +509,4 @@ declare function createStoreHelpers(config?: {
|
|
|
505
509
|
proxy?: string;
|
|
506
510
|
}): Helpers;
|
|
507
511
|
|
|
508
|
-
export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Collection, type CollectionWithProducts, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerSession, type CustomerSubscription, type CustomerSubscriptionUpdateParams, type CustomerUpdateParams, type Discount, type LineItem, type LineItemCreate, type ListCollectionsParams, type ListCollectionsQuery, type ListCollectionsSortBy, type ListProductsParams, type ListProductsQuery, type ListProductsSortBy, type OTPLoginParams, type OTPLoginResponse, type OTPSignupParams, type OTPSignupResponse, type OTPVerifyResponse, type Product, type ProductBillingInterval, type ProductBillingType, type ProductOption, type ProductStatus, type ProductVariant, type ProductWithoutVariants, type RetrieveCollectionParams, type RetrieveDiscountParams, type RetrieveProductParams, type ShippingRate, type SortOrder, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
|
512
|
+
export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Collection, type CollectionWithProducts, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerSession, type CustomerSubscription, type CustomerSubscriptionUpdateParams, type CustomerUpdateParams, type Discount, type LineItem, type LineItemCreate, type ListCollectionsParams, type ListCollectionsQuery, type ListCollectionsSortBy, type ListProductsParams, type ListProductsQuery, type ListProductsSortBy, type OTPLoginParams, type OTPLoginResponse, type OTPSignupParams, type OTPSignupResponse, type OTPVerifyParams, type OTPVerifyResponse, type Product, type ProductBillingInterval, type ProductBillingType, type ProductOption, type ProductStatus, type ProductVariant, type ProductWithoutVariants, type RetrieveCollectionParams, type RetrieveDiscountParams, type RetrieveProductParams, type ShippingRate, type SortOrder, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -303,6 +303,10 @@ interface OTPSignupParams extends OTPLoginParams {
|
|
|
303
303
|
firstName: string;
|
|
304
304
|
lastName: string;
|
|
305
305
|
}
|
|
306
|
+
interface OTPVerifyParams {
|
|
307
|
+
token: string;
|
|
308
|
+
otp: string;
|
|
309
|
+
}
|
|
306
310
|
type OTPLoginResponse = {
|
|
307
311
|
success: true;
|
|
308
312
|
token: string;
|
|
@@ -333,7 +337,7 @@ declare class OTP {
|
|
|
333
337
|
constructor(apiClient: ReturnType<typeof createApiClient>);
|
|
334
338
|
signup(params: OTPSignupParams): Promise<OTPSignupResponse>;
|
|
335
339
|
login(params: OTPLoginParams): Promise<OTPLoginResponse>;
|
|
336
|
-
verify(
|
|
340
|
+
verify(params: OTPVerifyParams): Promise<OTPVerifyResponse>;
|
|
337
341
|
}
|
|
338
342
|
|
|
339
343
|
declare class Auth {
|
|
@@ -505,4 +509,4 @@ declare function createStoreHelpers(config?: {
|
|
|
505
509
|
proxy?: string;
|
|
506
510
|
}): Helpers;
|
|
507
511
|
|
|
508
|
-
export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Collection, type CollectionWithProducts, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerSession, type CustomerSubscription, type CustomerSubscriptionUpdateParams, type CustomerUpdateParams, type Discount, type LineItem, type LineItemCreate, type ListCollectionsParams, type ListCollectionsQuery, type ListCollectionsSortBy, type ListProductsParams, type ListProductsQuery, type ListProductsSortBy, type OTPLoginParams, type OTPLoginResponse, type OTPSignupParams, type OTPSignupResponse, type OTPVerifyResponse, type Product, type ProductBillingInterval, type ProductBillingType, type ProductOption, type ProductStatus, type ProductVariant, type ProductWithoutVariants, type RetrieveCollectionParams, type RetrieveDiscountParams, type RetrieveProductParams, type ShippingRate, type SortOrder, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
|
512
|
+
export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Collection, type CollectionWithProducts, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerSession, type CustomerSubscription, type CustomerSubscriptionUpdateParams, type CustomerUpdateParams, type Discount, type LineItem, type LineItemCreate, type ListCollectionsParams, type ListCollectionsQuery, type ListCollectionsSortBy, type ListProductsParams, type ListProductsQuery, type ListProductsSortBy, type OTPLoginParams, type OTPLoginResponse, type OTPSignupParams, type OTPSignupResponse, type OTPVerifyParams, type OTPVerifyResponse, type Product, type ProductBillingInterval, type ProductBillingType, type ProductOption, type ProductStatus, type ProductVariant, type ProductWithoutVariants, type RetrieveCollectionParams, type RetrieveDiscountParams, type RetrieveProductParams, type ShippingRate, type SortOrder, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
package/dist/index.js
CHANGED
|
@@ -126,13 +126,11 @@ var OTP = class {
|
|
|
126
126
|
return data;
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
verify(
|
|
129
|
+
verify(params) {
|
|
130
130
|
return __async(this, null, function* () {
|
|
131
131
|
const data = yield this.apiClient.post(
|
|
132
132
|
"/auth/otp/verify",
|
|
133
|
-
|
|
134
|
-
token
|
|
135
|
-
}
|
|
133
|
+
params
|
|
136
134
|
);
|
|
137
135
|
return data;
|
|
138
136
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -89,13 +89,11 @@ var OTP = class {
|
|
|
89
89
|
return data;
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
verify(
|
|
92
|
+
verify(params) {
|
|
93
93
|
return __async(this, null, function* () {
|
|
94
94
|
const data = yield this.apiClient.post(
|
|
95
95
|
"/auth/otp/verify",
|
|
96
|
-
|
|
97
|
-
token
|
|
98
|
-
}
|
|
96
|
+
params
|
|
99
97
|
);
|
|
100
98
|
return data;
|
|
101
99
|
});
|