@compassdigital/sdk.typescript 4.579.0 → 4.581.0
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/lib/index.d.ts +9 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/catalog.d.ts +5 -4
- package/lib/interface/catalog.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +36 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/catalog.ts +10 -4
- package/src/interface/consumer.ts +52 -0
|
@@ -3575,6 +3575,46 @@ export interface ConsumerDeleteMealplanBody {
|
|
|
3575
3575
|
tenders?: string[];
|
|
3576
3576
|
}
|
|
3577
3577
|
|
|
3578
|
+
export interface PostExternalExchangeLoginCodeRequestDTO {
|
|
3579
|
+
// One-time code from the app login link
|
|
3580
|
+
code: string;
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3583
|
+
export interface AccessTokenPartDTO {
|
|
3584
|
+
token: string;
|
|
3585
|
+
expires: string;
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
export interface ProfileNameDTO {
|
|
3589
|
+
first: string;
|
|
3590
|
+
last: string;
|
|
3591
|
+
}
|
|
3592
|
+
|
|
3593
|
+
export interface ProfileDateDTO {
|
|
3594
|
+
modified?: string;
|
|
3595
|
+
created?: string;
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
export interface ProfileIsDTO {
|
|
3599
|
+
disabled: boolean;
|
|
3600
|
+
verified: boolean;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
export interface ExchangeProfileDTO {
|
|
3604
|
+
id: string;
|
|
3605
|
+
email: string;
|
|
3606
|
+
name?: ProfileNameDTO;
|
|
3607
|
+
date?: ProfileDateDTO;
|
|
3608
|
+
is?: ProfileIsDTO;
|
|
3609
|
+
// Additional user metadata
|
|
3610
|
+
meta?: Record<string, any>;
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3613
|
+
export interface PostExternalExchangeLoginCodeResponseDTO {
|
|
3614
|
+
access: AccessTokenPartDTO;
|
|
3615
|
+
profile: ExchangeProfileDTO;
|
|
3616
|
+
}
|
|
3617
|
+
|
|
3578
3618
|
// GET /consumer/v1/health-check
|
|
3579
3619
|
|
|
3580
3620
|
export type HealthCheckControllerExecuteResponse = {};
|
|
@@ -4324,3 +4364,15 @@ export type GetConsumerReviewOrderItemsResponse = GetReviewOrderItemsRequestDTO;
|
|
|
4324
4364
|
export type PostConsumerShoppingcartBulkBody = PostConsumerShoppingCartBulkBodyRequest;
|
|
4325
4365
|
|
|
4326
4366
|
export type PostConsumerShoppingcartBulkResponse = PostConsumerShoppingCartBulkResponse;
|
|
4367
|
+
|
|
4368
|
+
// POST /consumer/{partner}/user/exchange-login-code - Exchange one-time web app login code for access token and profile
|
|
4369
|
+
|
|
4370
|
+
export interface ConsumerPostExternalExchangeLoginCodePath {
|
|
4371
|
+
// Partner slug (validated by external-edge)
|
|
4372
|
+
partner: string;
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
export type ConsumerPostExternalExchangeLoginCodeBody = PostExternalExchangeLoginCodeRequestDTO;
|
|
4376
|
+
|
|
4377
|
+
export type ConsumerPostExternalExchangeLoginCodeResponse =
|
|
4378
|
+
PostExternalExchangeLoginCodeResponseDTO;
|