@compassdigital/sdk.typescript 4.109.0 → 4.111.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/events/CheckinProcessingFailed.d.ts +27 -0
- package/lib/events/CheckinProcessingFailed.d.ts.map +1 -0
- package/lib/events/CheckinProcessingFailed.js +4 -0
- package/lib/events/CheckinProcessingFailed.js.map +1 -0
- package/lib/events/FrictionlessCheckinExecuted.d.ts +12 -0
- package/lib/events/FrictionlessCheckinExecuted.d.ts.map +1 -0
- package/lib/events/FrictionlessCheckinExecuted.js +4 -0
- package/lib/events/FrictionlessCheckinExecuted.js.map +1 -0
- package/lib/events/FrictionlessShopperCheckedOut.d.ts +26 -0
- package/lib/events/FrictionlessShopperCheckedOut.d.ts.map +1 -0
- package/lib/events/FrictionlessShopperCheckedOut.js +4 -0
- package/lib/events/FrictionlessShopperCheckedOut.js.map +1 -0
- package/lib/events/FrictionlessThirdPartyWebhookReceived.d.ts +14 -0
- package/lib/events/FrictionlessThirdPartyWebhookReceived.d.ts.map +1 -0
- package/lib/events/FrictionlessThirdPartyWebhookReceived.js +4 -0
- package/lib/events/FrictionlessThirdPartyWebhookReceived.js.map +1 -0
- package/lib/events/LegacyBrandCleanupRequested.d.ts +11 -0
- package/lib/events/LegacyBrandCleanupRequested.d.ts.map +1 -0
- package/lib/events/LegacyBrandCleanupRequested.js +4 -0
- package/lib/events/LegacyBrandCleanupRequested.js.map +1 -0
- package/lib/events/LegacyBrandExcelImportRequested.d.ts +13 -0
- package/lib/events/LegacyBrandExcelImportRequested.d.ts.map +1 -0
- package/lib/events/LegacyBrandExcelImportRequested.js +4 -0
- package/lib/events/LegacyBrandExcelImportRequested.js.map +1 -0
- package/lib/events/LegacyDraftBrandDiffGenerateRequested.d.ts +11 -0
- package/lib/events/LegacyDraftBrandDiffGenerateRequested.d.ts.map +1 -0
- package/lib/events/LegacyDraftBrandDiffGenerateRequested.js +4 -0
- package/lib/events/LegacyDraftBrandDiffGenerateRequested.js.map +1 -0
- package/lib/events/LegacyDraftBrandGlobalDiffsApplyRequested.d.ts +11 -0
- package/lib/events/LegacyDraftBrandGlobalDiffsApplyRequested.d.ts.map +1 -0
- package/lib/events/LegacyDraftBrandGlobalDiffsApplyRequested.js +4 -0
- package/lib/events/LegacyDraftBrandGlobalDiffsApplyRequested.js.map +1 -0
- package/lib/events/LegacyDraftBrandPublishRequested.d.ts +12 -0
- package/lib/events/LegacyDraftBrandPublishRequested.d.ts.map +1 -0
- package/lib/events/LegacyDraftBrandPublishRequested.js +4 -0
- package/lib/events/LegacyDraftBrandPublishRequested.js.map +1 -0
- package/lib/events/LegacyDraftBrandPublished.d.ts +12 -0
- package/lib/events/LegacyDraftBrandPublished.d.ts.map +1 -0
- package/lib/events/LegacyDraftBrandPublished.js +4 -0
- package/lib/events/LegacyDraftBrandPublished.js.map +1 -0
- package/lib/events/LegacyDraftMenuPublishedToV2Menu.d.ts +12 -0
- package/lib/events/LegacyDraftMenuPublishedToV2Menu.d.ts.map +1 -0
- package/lib/events/LegacyDraftMenuPublishedToV2Menu.js +4 -0
- package/lib/events/LegacyDraftMenuPublishedToV2Menu.js.map +1 -0
- package/lib/events/LegacyGlobalMenuGroupDeleted.d.ts +11 -0
- package/lib/events/LegacyGlobalMenuGroupDeleted.d.ts.map +1 -0
- package/lib/events/LegacyGlobalMenuGroupDeleted.js +4 -0
- package/lib/events/LegacyGlobalMenuGroupDeleted.js.map +1 -0
- package/lib/events/LegacyItemExcelImportRequested.d.ts +12 -0
- package/lib/events/LegacyItemExcelImportRequested.d.ts.map +1 -0
- package/lib/events/LegacyItemExcelImportRequested.js +4 -0
- package/lib/events/LegacyItemExcelImportRequested.js.map +1 -0
- package/lib/events/LegacyItemExcelValidationRequested.d.ts +13 -0
- package/lib/events/LegacyItemExcelValidationRequested.d.ts.map +1 -0
- package/lib/events/LegacyItemExcelValidationRequested.js +4 -0
- package/lib/events/LegacyItemExcelValidationRequested.js.map +1 -0
- package/lib/events/LegacyLocalMenuGroupDeleted.d.ts +11 -0
- package/lib/events/LegacyLocalMenuGroupDeleted.d.ts.map +1 -0
- package/lib/events/LegacyLocalMenuGroupDeleted.js +4 -0
- package/lib/events/LegacyLocalMenuGroupDeleted.js.map +1 -0
- package/lib/events/LegacyLocationCreated.d.ts +70 -0
- package/lib/events/LegacyLocationCreated.d.ts.map +1 -0
- package/lib/events/LegacyLocationCreated.js +4 -0
- package/lib/events/LegacyLocationCreated.js.map +1 -0
- package/lib/events/LegacyLocationUpdated.d.ts +71 -0
- package/lib/events/LegacyLocationUpdated.d.ts.map +1 -0
- package/lib/events/LegacyLocationUpdated.js +4 -0
- package/lib/events/LegacyLocationUpdated.js.map +1 -0
- package/lib/events/LegacyMenuPublishToV2MenuRequested.d.ts +12 -0
- package/lib/events/LegacyMenuPublishToV2MenuRequested.d.ts.map +1 -0
- package/lib/events/LegacyMenuPublishToV2MenuRequested.js +4 -0
- package/lib/events/LegacyMenuPublishToV2MenuRequested.js.map +1 -0
- package/lib/events/LegacyMenuUpdated.d.ts +13 -0
- package/lib/events/LegacyMenuUpdated.d.ts.map +1 -0
- package/lib/events/LegacyMenuUpdated.js +4 -0
- package/lib/events/LegacyMenuUpdated.js.map +1 -0
- package/lib/events/LegacyOrderCreated.d.ts +68 -0
- package/lib/events/LegacyOrderCreated.d.ts.map +1 -0
- package/lib/events/LegacyOrderCreated.js +4 -0
- package/lib/events/LegacyOrderCreated.js.map +1 -0
- package/lib/events/LegacyOrderReadyStatusUpdate.d.ts +134 -0
- package/lib/events/LegacyOrderReadyStatusUpdate.d.ts.map +1 -0
- package/lib/events/LegacyOrderReadyStatusUpdate.js +4 -0
- package/lib/events/LegacyOrderReadyStatusUpdate.js.map +1 -0
- package/lib/events/LegacyOrderUpdated.d.ts +69 -0
- package/lib/events/LegacyOrderUpdated.d.ts.map +1 -0
- package/lib/events/LegacyOrderUpdated.js +4 -0
- package/lib/events/LegacyOrderUpdated.js.map +1 -0
- package/lib/events/LegacyPopulateLocalBrandsRequested.d.ts +12 -0
- package/lib/events/LegacyPopulateLocalBrandsRequested.d.ts.map +1 -0
- package/lib/events/LegacyPopulateLocalBrandsRequested.js +4 -0
- package/lib/events/LegacyPopulateLocalBrandsRequested.js.map +1 -0
- package/lib/events/LegacyShoppingCartCreated.d.ts +71 -0
- package/lib/events/LegacyShoppingCartCreated.d.ts.map +1 -0
- package/lib/events/LegacyShoppingCartCreated.js +4 -0
- package/lib/events/LegacyShoppingCartCreated.js.map +1 -0
- package/lib/events/LegacyShoppingCartUpdated.d.ts +71 -0
- package/lib/events/LegacyShoppingCartUpdated.d.ts.map +1 -0
- package/lib/events/LegacyShoppingCartUpdated.js +4 -0
- package/lib/events/LegacyShoppingCartUpdated.js.map +1 -0
- package/lib/events/LegacyUserCreated.d.ts +91 -0
- package/lib/events/LegacyUserCreated.d.ts.map +1 -0
- package/lib/events/LegacyUserCreated.js +4 -0
- package/lib/events/LegacyUserCreated.js.map +1 -0
- package/lib/events/LegacyUserUpdated.d.ts +111 -0
- package/lib/events/LegacyUserUpdated.d.ts.map +1 -0
- package/lib/events/LegacyUserUpdated.js +4 -0
- package/lib/events/LegacyUserUpdated.js.map +1 -0
- package/lib/events/LegacyV2MenuCreated.d.ts +9 -0
- package/lib/events/LegacyV2MenuCreated.d.ts.map +1 -0
- package/lib/events/LegacyV2MenuCreated.js +4 -0
- package/lib/events/LegacyV2MenuCreated.js.map +1 -0
- package/lib/events/LegacyV2MenuDeleted.d.ts +9 -0
- package/lib/events/LegacyV2MenuDeleted.d.ts.map +1 -0
- package/lib/events/LegacyV2MenuDeleted.js +4 -0
- package/lib/events/LegacyV2MenuDeleted.js.map +1 -0
- package/lib/events/LegacyV2MenuUpdated.d.ts +9 -0
- package/lib/events/LegacyV2MenuUpdated.d.ts.map +1 -0
- package/lib/events/LegacyV2MenuUpdated.js +4 -0
- package/lib/events/LegacyV2MenuUpdated.js.map +1 -0
- package/lib/events/LegacyWebhookEventCreated.d.ts +11 -0
- package/lib/events/LegacyWebhookEventCreated.d.ts.map +1 -0
- package/lib/events/LegacyWebhookEventCreated.js +4 -0
- package/lib/events/LegacyWebhookEventCreated.js.map +1 -0
- package/lib/events/ReprocessCheckinCommandArrived.d.ts +7 -0
- package/lib/events/ReprocessCheckinCommandArrived.d.ts.map +1 -0
- package/lib/events/ReprocessCheckinCommandArrived.js +4 -0
- package/lib/events/ReprocessCheckinCommandArrived.js.map +1 -0
- package/lib/events/ScanAndGoLocationBrandCreated.d.ts +21 -0
- package/lib/events/ScanAndGoLocationBrandCreated.d.ts.map +1 -0
- package/lib/events/ScanAndGoLocationBrandCreated.js +4 -0
- package/lib/events/ScanAndGoLocationBrandCreated.js.map +1 -0
- package/lib/events/UpdateCheckInPaymentRequired.d.ts +22 -0
- package/lib/events/UpdateCheckInPaymentRequired.d.ts.map +1 -0
- package/lib/events/UpdateCheckInPaymentRequired.js +4 -0
- package/lib/events/UpdateCheckInPaymentRequired.js.map +1 -0
- package/lib/events/index.d.ts +35 -0
- package/lib/events/index.d.ts.map +1 -0
- package/lib/events/index.js +4 -0
- package/lib/events/index.js.map +1 -0
- package/lib/index.d.ts +105 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +114 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +0 -10
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/auth.d.ts +0 -22
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +20 -48
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +174 -14
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +0 -16
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +0 -25
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/review.d.ts +0 -8
- package/lib/interface/review.d.ts.map +1 -1
- package/lib/interface/search.d.ts +0 -5
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +0 -6
- package/lib/interface/tax.d.ts.map +1 -1
- package/manifest.json +36 -9
- package/package.json +2 -2
- package/pipeline.yml +1 -0
- package/src/events/CheckinProcessingFailed.ts +28 -0
- package/src/events/FrictionlessCheckinExecuted.ts +13 -0
- package/src/events/FrictionlessShopperCheckedOut.ts +30 -0
- package/src/events/FrictionlessThirdPartyWebhookReceived.ts +15 -0
- package/src/events/LegacyBrandCleanupRequested.ts +14 -0
- package/src/events/LegacyBrandExcelImportRequested.ts +18 -0
- package/src/events/LegacyDraftBrandDiffGenerateRequested.ts +16 -0
- package/src/events/LegacyDraftBrandGlobalDiffsApplyRequested.ts +16 -0
- package/src/events/LegacyDraftBrandPublishRequested.ts +18 -0
- package/src/events/LegacyDraftBrandPublished.ts +18 -0
- package/src/events/LegacyDraftMenuPublishedToV2Menu.ts +18 -0
- package/src/events/LegacyGlobalMenuGroupDeleted.ts +14 -0
- package/src/events/LegacyItemExcelImportRequested.ts +16 -0
- package/src/events/LegacyItemExcelValidationRequested.ts +18 -0
- package/src/events/LegacyLocalMenuGroupDeleted.ts +14 -0
- package/src/events/LegacyLocationCreated.ts +100 -0
- package/src/events/LegacyLocationUpdated.ts +102 -0
- package/src/events/LegacyMenuPublishToV2MenuRequested.ts +16 -0
- package/src/events/LegacyMenuUpdated.ts +18 -0
- package/src/events/LegacyOrderCreated.ts +69 -0
- package/src/events/LegacyOrderReadyStatusUpdate.ts +135 -0
- package/src/events/LegacyOrderUpdated.ts +70 -0
- package/src/events/LegacyPopulateLocalBrandsRequested.ts +15 -0
- package/src/events/LegacyShoppingCartCreated.ts +72 -0
- package/src/events/LegacyShoppingCartUpdated.ts +72 -0
- package/src/events/LegacyUserCreated.ts +92 -0
- package/src/events/LegacyUserUpdated.ts +113 -0
- package/src/events/LegacyV2MenuCreated.ts +13 -0
- package/src/events/LegacyV2MenuDeleted.ts +13 -0
- package/src/events/LegacyV2MenuUpdated.ts +13 -0
- package/src/events/LegacyWebhookEventCreated.ts +12 -0
- package/src/events/ReprocessCheckinCommandArrived.ts +8 -0
- package/src/events/ScanAndGoLocationBrandCreated.ts +22 -0
- package/src/events/UpdateCheckInPaymentRequired.ts +23 -0
- package/src/events/index.ts +69 -0
- package/src/index.ts +284 -0
- package/src/interface/ai.ts +0 -12
- package/src/interface/auth.ts +0 -30
- package/src/interface/centricos.ts +27 -92
- package/src/interface/consumer.ts +277 -23
- package/src/interface/discount.ts +0 -21
- package/src/interface/frictionless.ts +0 -47
- package/src/interface/review.ts +0 -11
- package/src/interface/search.ts +0 -6
- package/src/interface/tax.ts +0 -6
|
@@ -771,18 +771,156 @@ export interface HomePageRequest {
|
|
|
771
771
|
end: number;
|
|
772
772
|
// current date as a long
|
|
773
773
|
date: number;
|
|
774
|
+
reorderEligible: boolean;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export interface LocalizedGreetingMessage {
|
|
778
|
+
en: string;
|
|
779
|
+
fr: string;
|
|
780
|
+
es: string;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export interface DiverseGreetingMessages {
|
|
784
|
+
start: string;
|
|
785
|
+
end: string;
|
|
786
|
+
messages: LocalizedGreetingMessage[];
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export interface HeroImage {
|
|
790
|
+
start: string;
|
|
791
|
+
end: string;
|
|
792
|
+
images: string[];
|
|
774
793
|
}
|
|
775
794
|
|
|
776
795
|
export interface HomePageResponse {
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
// valid hero images
|
|
780
|
-
heroImages: Record<string, any>[];
|
|
796
|
+
greetingMessage: DiverseGreetingMessages;
|
|
797
|
+
heroImages: HeroImage;
|
|
781
798
|
orders: Record<string, any>[][];
|
|
782
799
|
// location object for the site
|
|
783
800
|
location: Record<string, any>;
|
|
784
801
|
}
|
|
785
802
|
|
|
803
|
+
export interface FrictionlessCheckinResponse {
|
|
804
|
+
id: string;
|
|
805
|
+
provider: Record<string, any>;
|
|
806
|
+
status: Record<string, any>;
|
|
807
|
+
reasonOfFail?: string;
|
|
808
|
+
thirdPartyCorrelatedID?: string;
|
|
809
|
+
shoppingCartID?: string;
|
|
810
|
+
brandID: string;
|
|
811
|
+
userID: string;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export interface FrictionlessQrCodeRequest {
|
|
815
|
+
// brand id
|
|
816
|
+
brandId: string;
|
|
817
|
+
// payment method
|
|
818
|
+
paymentMethod: Record<string, any>;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
export interface FrictionlessQrCodeResponse {
|
|
822
|
+
qrcode: string;
|
|
823
|
+
expiration: number;
|
|
824
|
+
id: string;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export interface ForgotPasswordRequest {
|
|
828
|
+
// email
|
|
829
|
+
email: string;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export interface ForgotPasswordResponse {
|
|
833
|
+
code?: number;
|
|
834
|
+
success?: boolean;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export interface AddUserSecretResponse {
|
|
838
|
+
key?: string;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export interface GetConsumerLocationGroupResponse {
|
|
842
|
+
// id
|
|
843
|
+
id: string;
|
|
844
|
+
date?: {
|
|
845
|
+
created?: string;
|
|
846
|
+
modified?: string;
|
|
847
|
+
};
|
|
848
|
+
// name
|
|
849
|
+
name: string;
|
|
850
|
+
label?: {
|
|
851
|
+
en?: string;
|
|
852
|
+
fr?: string;
|
|
853
|
+
};
|
|
854
|
+
// distance in meters from the group
|
|
855
|
+
distance?: number;
|
|
856
|
+
// list of locations
|
|
857
|
+
locations?: Record<string, any>[];
|
|
858
|
+
// location address
|
|
859
|
+
address?: Record<string, any>;
|
|
860
|
+
// meta data
|
|
861
|
+
meta?: Record<string, any>;
|
|
862
|
+
style?: {
|
|
863
|
+
logo?: string | null;
|
|
864
|
+
main_logo?: string | null;
|
|
865
|
+
alt_logo?: string | null;
|
|
866
|
+
};
|
|
867
|
+
// timezone
|
|
868
|
+
timezone?: string;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export interface GetConsumerLocationMultiGroupResponse {
|
|
872
|
+
// id
|
|
873
|
+
id: string;
|
|
874
|
+
// name
|
|
875
|
+
name: string;
|
|
876
|
+
// groups
|
|
877
|
+
groups: Record<string, any>[];
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
export interface ConsumerGetActiveMenusResponse {
|
|
881
|
+
// menus
|
|
882
|
+
menus: Record<string, any>[];
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export interface GetConsumerMenuResponse {
|
|
886
|
+
// menu id
|
|
887
|
+
id: string;
|
|
888
|
+
date?: {
|
|
889
|
+
created?: string;
|
|
890
|
+
modified?: string;
|
|
891
|
+
published?: string;
|
|
892
|
+
};
|
|
893
|
+
label?: {
|
|
894
|
+
en?: string;
|
|
895
|
+
};
|
|
896
|
+
// menu groups
|
|
897
|
+
groups: Record<string, any>[];
|
|
898
|
+
// menu parent id
|
|
899
|
+
parent_id: string;
|
|
900
|
+
// menu location brand
|
|
901
|
+
location_brand?: string;
|
|
902
|
+
// menu company
|
|
903
|
+
company?: string;
|
|
904
|
+
// menu sector
|
|
905
|
+
sector?: string;
|
|
906
|
+
is?: {
|
|
907
|
+
disabled?: boolean;
|
|
908
|
+
hidden?: boolean;
|
|
909
|
+
linked?: boolean;
|
|
910
|
+
promo_exemptions_enabled?: boolean;
|
|
911
|
+
plu_enabled?: boolean;
|
|
912
|
+
item_images_enabled?: boolean;
|
|
913
|
+
item_showcase_enabled?: boolean;
|
|
914
|
+
item_desc_edit_enabled?: boolean;
|
|
915
|
+
calories_edit_enabled?: boolean;
|
|
916
|
+
item_label_edit_enabled?: boolean;
|
|
917
|
+
frictionless?: boolean;
|
|
918
|
+
category_images_enabled?: boolean;
|
|
919
|
+
};
|
|
920
|
+
// menu meta
|
|
921
|
+
meta?: Record<string, any>;
|
|
922
|
+
}
|
|
923
|
+
|
|
786
924
|
// GET /consumer/v1/health-check
|
|
787
925
|
|
|
788
926
|
export interface HealthCheckControllerExecuteQuery {
|
|
@@ -792,10 +930,6 @@ export interface HealthCheckControllerExecuteQuery {
|
|
|
792
930
|
|
|
793
931
|
export type HealthCheckControllerExecuteResponse = {};
|
|
794
932
|
|
|
795
|
-
export interface HealthCheckControllerExecuteRequest
|
|
796
|
-
extends BaseRequest,
|
|
797
|
-
RequestQuery<HealthCheckControllerExecuteQuery> {}
|
|
798
|
-
|
|
799
933
|
// GET /consumer/v1/payment-methods - List payment methods available in a given brand
|
|
800
934
|
|
|
801
935
|
export interface GetPaymentListByBrandQuery {
|
|
@@ -809,10 +943,6 @@ export interface GetPaymentListByBrandQuery {
|
|
|
809
943
|
|
|
810
944
|
export type GetPaymentListByBrandResponse = ListAvailablePaymentsResponseDTO;
|
|
811
945
|
|
|
812
|
-
export interface GetPaymentListByBrandRequest
|
|
813
|
-
extends BaseRequest,
|
|
814
|
-
RequestQuery<GetPaymentListByBrandQuery> {}
|
|
815
|
-
|
|
816
946
|
// GET /consumer/customer-orders/{userId} - Get customer orders
|
|
817
947
|
|
|
818
948
|
export interface GetCustomerOrdersPath {
|
|
@@ -831,27 +961,151 @@ export interface GetCustomerOrdersQuery {
|
|
|
831
961
|
|
|
832
962
|
export type GetCustomerOrdersResponse = GetCustomerOrdersResponseDTO;
|
|
833
963
|
|
|
834
|
-
export interface GetCustomerOrdersRequest
|
|
835
|
-
extends BaseRequest,
|
|
836
|
-
RequestQuery<GetCustomerOrdersQuery>,
|
|
837
|
-
GetCustomerOrdersPath {}
|
|
838
|
-
|
|
839
964
|
// POST /consumer/review/order-items - Submit reviews for order items
|
|
840
965
|
|
|
841
966
|
export type PostReviewOrderItemsBody = PostReviewOrderItemsRequestDTO;
|
|
842
967
|
|
|
843
968
|
export type PostReviewOrderItemsResponse = PostReviewOrderItemsResponseDTO;
|
|
844
969
|
|
|
845
|
-
export interface PostReviewOrderItemsRequest extends BaseRequest {
|
|
846
|
-
body: PostReviewOrderItemsBody;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
970
|
// POST /consumer/home - Provide the front end all the data required to render the home page
|
|
850
971
|
|
|
851
972
|
export type PostHomePageBody = HomePageRequest;
|
|
852
973
|
|
|
853
974
|
export type PostHomePageResponse = HomePageResponse;
|
|
854
975
|
|
|
855
|
-
|
|
856
|
-
|
|
976
|
+
// GET /consumer/frictionless/checkin/{id} - Allow a user to check in to a location using frictionless technology
|
|
977
|
+
|
|
978
|
+
export interface GetConsumerFrictionlessCheckinPath {
|
|
979
|
+
id: string;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
export interface GetConsumerFrictionlessCheckinQuery {
|
|
983
|
+
// Graphql query string
|
|
984
|
+
_query?: string;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
export type GetConsumerFrictionlessCheckinResponse = FrictionlessCheckinResponse;
|
|
988
|
+
|
|
989
|
+
// POST /consumer/frictionless/qrCode - Create a QR code for a frictionless checkin
|
|
990
|
+
|
|
991
|
+
export type PostFrictionlessQrcodeBody = FrictionlessQrCodeRequest;
|
|
992
|
+
|
|
993
|
+
export type PostFrictionlessQrcodeResponse = FrictionlessQrCodeResponse;
|
|
994
|
+
|
|
995
|
+
// POST /consumer/forgotpassword - Forgot password
|
|
996
|
+
|
|
997
|
+
export type PostConsumerForgotPasswordBody = ForgotPasswordRequest;
|
|
998
|
+
|
|
999
|
+
export type PostConsumerForgotPasswordResponse = ForgotPasswordResponse;
|
|
1000
|
+
|
|
1001
|
+
// POST /consumer/secret - Add user secret
|
|
1002
|
+
|
|
1003
|
+
export type PostConsumerAddSecretResponse = AddUserSecretResponse;
|
|
1004
|
+
|
|
1005
|
+
// GET /consumer/location-group/{id} - Get location group
|
|
1006
|
+
|
|
1007
|
+
export interface GetConsumerLocationGroupPath {
|
|
1008
|
+
// TODO: add parameter to swagger.json
|
|
1009
|
+
id: string;
|
|
857
1010
|
}
|
|
1011
|
+
|
|
1012
|
+
export interface GetConsumerLocationGroupQuery {
|
|
1013
|
+
// Latitude of the user
|
|
1014
|
+
latitude?: number;
|
|
1015
|
+
// Show disabled marketplace
|
|
1016
|
+
show_disabled_marketplace?: boolean;
|
|
1017
|
+
// Longitude of the user
|
|
1018
|
+
longitude?: number;
|
|
1019
|
+
// Include brands config
|
|
1020
|
+
include_brands_config?: boolean;
|
|
1021
|
+
// Public config only
|
|
1022
|
+
public_config_only?: boolean;
|
|
1023
|
+
// Extended
|
|
1024
|
+
extended?: boolean;
|
|
1025
|
+
// Web
|
|
1026
|
+
web?: boolean;
|
|
1027
|
+
// Non marketplace
|
|
1028
|
+
non_market_places?: boolean;
|
|
1029
|
+
// Non scan go
|
|
1030
|
+
non_scan_go?: boolean;
|
|
1031
|
+
// Include estimated wait time
|
|
1032
|
+
include_estimated_wait_time?: boolean;
|
|
1033
|
+
// Graphql query string
|
|
1034
|
+
_query?: string;
|
|
1035
|
+
// Latitude of the user
|
|
1036
|
+
nocache?: boolean;
|
|
1037
|
+
// Location Group ID as Encoded CDL ID
|
|
1038
|
+
id?: string;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
export type GetConsumerLocationGroupResponse$0 = GetConsumerLocationGroupResponse;
|
|
1042
|
+
|
|
1043
|
+
// GET /consumer/location-multigroup/{id} - Get location multi group
|
|
1044
|
+
|
|
1045
|
+
export interface GetConsumerLocationMultigroupPath {
|
|
1046
|
+
// TODO: add parameter to swagger.json
|
|
1047
|
+
id: string;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
export interface GetConsumerLocationMultigroupQuery {
|
|
1051
|
+
// Latitude of the user
|
|
1052
|
+
latitude?: number;
|
|
1053
|
+
// Longitude of the user
|
|
1054
|
+
longitude?: number;
|
|
1055
|
+
// Show disabled marketplace
|
|
1056
|
+
merge?: string;
|
|
1057
|
+
// Include brands config
|
|
1058
|
+
expanded?: boolean;
|
|
1059
|
+
// Extended
|
|
1060
|
+
extended?: boolean;
|
|
1061
|
+
// Public config only
|
|
1062
|
+
hours?: boolean;
|
|
1063
|
+
// Web
|
|
1064
|
+
web?: boolean;
|
|
1065
|
+
// Non marketplace
|
|
1066
|
+
non_market_places?: boolean;
|
|
1067
|
+
// Non scan go
|
|
1068
|
+
non_scan_go?: boolean;
|
|
1069
|
+
// Graphql query string
|
|
1070
|
+
_query?: string;
|
|
1071
|
+
nocache?: boolean;
|
|
1072
|
+
// Location Group ID as Encoded CDL ID
|
|
1073
|
+
id?: string;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
export type GetConsumerLocationMultigroupResponse = GetConsumerLocationMultiGroupResponse;
|
|
1077
|
+
|
|
1078
|
+
// GET /consumer/active-menus/{stationId} - Get current menu
|
|
1079
|
+
|
|
1080
|
+
export interface GetConsumerActiveMenusPath {
|
|
1081
|
+
// TODO: add parameter to swagger.json
|
|
1082
|
+
stationId: string;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
export interface GetConsumerActiveMenusQuery {
|
|
1086
|
+
// Station ID as Encoded CDL ID
|
|
1087
|
+
id?: string;
|
|
1088
|
+
// current time in epoch time
|
|
1089
|
+
currentTime: number;
|
|
1090
|
+
// is pickup
|
|
1091
|
+
isPickUp?: boolean;
|
|
1092
|
+
// is drop off
|
|
1093
|
+
isDropOff?: boolean;
|
|
1094
|
+
// Graphql query string
|
|
1095
|
+
_query?: string;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export type GetConsumerActiveMenusResponse = ConsumerGetActiveMenusResponse;
|
|
1099
|
+
|
|
1100
|
+
// GET /consumer/menu/{id} - Provide the front end all the data required to render the home page
|
|
1101
|
+
|
|
1102
|
+
export interface GetConsumerMenuPath {
|
|
1103
|
+
id: string;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export interface GetConsumerMenuQuery {
|
|
1107
|
+
// Graphql query string
|
|
1108
|
+
_query?: string;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
export type GetConsumerMenuResponse$0 = GetConsumerMenuResponse;
|
|
@@ -181,11 +181,6 @@ export interface GetDiscountQuery {
|
|
|
181
181
|
|
|
182
182
|
export type GetDiscountResponse = GetDiscountResponseDTO;
|
|
183
183
|
|
|
184
|
-
export interface GetDiscountRequest
|
|
185
|
-
extends BaseRequest,
|
|
186
|
-
RequestQuery<GetDiscountQuery>,
|
|
187
|
-
GetDiscountPath {}
|
|
188
|
-
|
|
189
184
|
// PUT /discount/{id} - update a discount
|
|
190
185
|
|
|
191
186
|
export interface PutDiscountPath {
|
|
@@ -197,10 +192,6 @@ export type PutDiscountBody = PutDiscountRequestDTO;
|
|
|
197
192
|
|
|
198
193
|
export type PutDiscountResponse = PutDiscountResponseDTO;
|
|
199
194
|
|
|
200
|
-
export interface PutDiscountRequest extends BaseRequest, PutDiscountPath {
|
|
201
|
-
body: PutDiscountBody;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
195
|
// DELETE /discount/{id} - delete a discount
|
|
205
196
|
|
|
206
197
|
export interface DeleteDiscountPath {
|
|
@@ -210,8 +201,6 @@ export interface DeleteDiscountPath {
|
|
|
210
201
|
|
|
211
202
|
export type DeleteDiscountResponse = DeleteDiscountResponseDTO;
|
|
212
203
|
|
|
213
|
-
export interface DeleteDiscountRequest extends BaseRequest, DeleteDiscountPath {}
|
|
214
|
-
|
|
215
204
|
// GET /discount - Get discounts by taxonomy
|
|
216
205
|
|
|
217
206
|
export interface GetDiscountsQuery {
|
|
@@ -222,18 +211,12 @@ export interface GetDiscountsQuery {
|
|
|
222
211
|
|
|
223
212
|
export type GetDiscountsResponse = GetDiscountsResponseDTO;
|
|
224
213
|
|
|
225
|
-
export interface GetDiscountsRequest extends BaseRequest, RequestQuery<GetDiscountsQuery> {}
|
|
226
|
-
|
|
227
214
|
// POST /discount - Post a discount
|
|
228
215
|
|
|
229
216
|
export type PostDiscountBody = PostDiscountRequestDTO;
|
|
230
217
|
|
|
231
218
|
export type PostDiscountResponse = PostDiscountResponseDTO;
|
|
232
219
|
|
|
233
|
-
export interface PostDiscountRequest extends BaseRequest {
|
|
234
|
-
body: PostDiscountBody;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
220
|
// PUT /discount/{id}/publish - update and publish a discount
|
|
238
221
|
|
|
239
222
|
export interface PutDiscountPublishPath {
|
|
@@ -244,7 +227,3 @@ export interface PutDiscountPublishPath {
|
|
|
244
227
|
export type PutDiscountPublishBody = PutDiscountPublishRequestDTO;
|
|
245
228
|
|
|
246
229
|
export type PutDiscountPublishResponse = PutDiscountPublishResponseDTO;
|
|
247
|
-
|
|
248
|
-
export interface PutDiscountPublishRequest extends BaseRequest, PutDiscountPublishPath {
|
|
249
|
-
body: PutDiscountPublishBody;
|
|
250
|
-
}
|
|
@@ -221,21 +221,12 @@ export interface GetFrictionlessBrandFrictionlessStatusQuery {
|
|
|
221
221
|
|
|
222
222
|
export type GetFrictionlessBrandFrictionlessStatusResponse = FrictionlessSupportResponseDTO;
|
|
223
223
|
|
|
224
|
-
export interface GetFrictionlessBrandFrictionlessStatusRequest
|
|
225
|
-
extends BaseRequest,
|
|
226
|
-
RequestQuery<GetFrictionlessBrandFrictionlessStatusQuery>,
|
|
227
|
-
GetFrictionlessBrandFrictionlessStatusPath {}
|
|
228
|
-
|
|
229
224
|
// POST /frictionless/qrcode - Create Frictionless QR Code to make user able to check in
|
|
230
225
|
|
|
231
226
|
export type PostFrictionlessQrCodeBody = CreateFrictionlessQRCodeCommandDTO;
|
|
232
227
|
|
|
233
228
|
export type PostFrictionlessQrCodeResponse = QRCodeCreationResponseDTO;
|
|
234
229
|
|
|
235
|
-
export interface PostFrictionlessQrCodeRequest extends BaseRequest {
|
|
236
|
-
body: PostFrictionlessQrCodeBody;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
230
|
// GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn Status
|
|
240
231
|
|
|
241
232
|
export interface GetFrictionlessCheckinStatusPath {
|
|
@@ -249,11 +240,6 @@ export interface GetFrictionlessCheckinStatusQuery {
|
|
|
249
240
|
|
|
250
241
|
export type GetFrictionlessCheckinStatusResponse = GetCheckInStatusResponseDTO;
|
|
251
242
|
|
|
252
|
-
export interface GetFrictionlessCheckinStatusRequest
|
|
253
|
-
extends BaseRequest,
|
|
254
|
-
RequestQuery<GetFrictionlessCheckinStatusQuery>,
|
|
255
|
-
GetFrictionlessCheckinStatusPath {}
|
|
256
|
-
|
|
257
243
|
// GET /frictionless/checkin/{id_checkin} - Fetch CheckIn
|
|
258
244
|
|
|
259
245
|
export interface GetFrictionlessCheckinPath {
|
|
@@ -267,11 +253,6 @@ export interface GetFrictionlessCheckinQuery {
|
|
|
267
253
|
|
|
268
254
|
export type GetFrictionlessCheckinResponse = GetCheckinResponseDTO;
|
|
269
255
|
|
|
270
|
-
export interface GetFrictionlessCheckinRequest
|
|
271
|
-
extends BaseRequest,
|
|
272
|
-
RequestQuery<GetFrictionlessCheckinQuery>,
|
|
273
|
-
GetFrictionlessCheckinPath {}
|
|
274
|
-
|
|
275
256
|
// GET /frictionless/users/{user_id}/checkins/payment-issues - List check-ins with update payment required per user
|
|
276
257
|
|
|
277
258
|
export interface GetFrictionlessUsersPaymentIssuesPath {
|
|
@@ -285,11 +266,6 @@ export interface GetFrictionlessUsersPaymentIssuesQuery {
|
|
|
285
266
|
|
|
286
267
|
export type GetFrictionlessUsersPaymentIssuesResponse = CheckInPaymentRequiredDTO[];
|
|
287
268
|
|
|
288
|
-
export interface GetFrictionlessUsersPaymentIssuesRequest
|
|
289
|
-
extends BaseRequest,
|
|
290
|
-
RequestQuery<GetFrictionlessUsersPaymentIssuesQuery>,
|
|
291
|
-
GetFrictionlessUsersPaymentIssuesPath {}
|
|
292
|
-
|
|
293
269
|
// GET /frictionless/failed-checkins - List check-ins on error
|
|
294
270
|
|
|
295
271
|
export interface GetFrictionlessFailedCheckinsQuery {
|
|
@@ -299,10 +275,6 @@ export interface GetFrictionlessFailedCheckinsQuery {
|
|
|
299
275
|
|
|
300
276
|
export type GetFrictionlessFailedCheckinsResponse = FailedCheckInDTO[];
|
|
301
277
|
|
|
302
|
-
export interface GetFrictionlessFailedCheckinsRequest
|
|
303
|
-
extends BaseRequest,
|
|
304
|
-
RequestQuery<GetFrictionlessFailedCheckinsQuery> {}
|
|
305
|
-
|
|
306
278
|
// POST /frictionless/checkins/{id_checkin}/reprocess - Reprocess checkin on error
|
|
307
279
|
|
|
308
280
|
export interface PostFrictionlessCheckinsReprocessPath {
|
|
@@ -311,10 +283,6 @@ export interface PostFrictionlessCheckinsReprocessPath {
|
|
|
311
283
|
|
|
312
284
|
export type PostFrictionlessCheckinsReprocessResponse = {};
|
|
313
285
|
|
|
314
|
-
export interface PostFrictionlessCheckinsReprocessRequest
|
|
315
|
-
extends BaseRequest,
|
|
316
|
-
PostFrictionlessCheckinsReprocessPath {}
|
|
317
|
-
|
|
318
286
|
// POST /frictionless/checkins/{checkin_id}/reprocess-payment - Update payment at checkin and trigger reprocessing
|
|
319
287
|
|
|
320
288
|
export interface PostFrictionlessCheckinReprocessPaymentPath {
|
|
@@ -325,12 +293,6 @@ export type PostFrictionlessCheckinReprocessPaymentBody = PaymentMethodDTO;
|
|
|
325
293
|
|
|
326
294
|
export type PostFrictionlessCheckinReprocessPaymentResponse = {};
|
|
327
295
|
|
|
328
|
-
export interface PostFrictionlessCheckinReprocessPaymentRequest
|
|
329
|
-
extends BaseRequest,
|
|
330
|
-
PostFrictionlessCheckinReprocessPaymentPath {
|
|
331
|
-
body: PostFrictionlessCheckinReprocessPaymentBody;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
296
|
// POST /frictionless/amazon-jwo-connector/v1/identity/identity-keys - Amazon JWO Identity Key Connector
|
|
335
297
|
|
|
336
298
|
export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody =
|
|
@@ -339,18 +301,9 @@ export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody =
|
|
|
339
301
|
export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysResponse =
|
|
340
302
|
AmazonJWOIdentityKeysResponseDTO;
|
|
341
303
|
|
|
342
|
-
export interface PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysRequest
|
|
343
|
-
extends BaseRequest {
|
|
344
|
-
body: PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
304
|
// POST /frictionless/amazon-jwo-connector/v1/order/purchases - Amazon JWO Ordering Connector
|
|
348
305
|
|
|
349
306
|
export type PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody = AmazonJWOOrderingRequestDTO;
|
|
350
307
|
|
|
351
308
|
export type PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse =
|
|
352
309
|
AmazonJWOOrderingResponseDTO;
|
|
353
|
-
|
|
354
|
-
export interface PostFrictionlessAmazonJwoConnectorV1OrderPurchasesRequest extends BaseRequest {
|
|
355
|
-
body: PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody;
|
|
356
|
-
}
|
package/src/interface/review.ts
CHANGED
|
@@ -72,18 +72,12 @@ export interface GetReviewsQuery {
|
|
|
72
72
|
|
|
73
73
|
export type GetReviewsResponse = GetReviewsResponseDTO;
|
|
74
74
|
|
|
75
|
-
export interface GetReviewsRequest extends BaseRequest, RequestQuery<GetReviewsQuery> {}
|
|
76
|
-
|
|
77
75
|
// POST /review - Post a review
|
|
78
76
|
|
|
79
77
|
export type PostReviewBody = PostReviewRequestDTO;
|
|
80
78
|
|
|
81
79
|
export type PostReviewResponse = PostReviewResponseDTO;
|
|
82
80
|
|
|
83
|
-
export interface PostReviewRequest extends BaseRequest {
|
|
84
|
-
body: PostReviewBody;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
81
|
// GET /review/{id} - Get a review
|
|
88
82
|
|
|
89
83
|
export interface GetReviewPath {
|
|
@@ -96,8 +90,3 @@ export interface GetReviewQuery {
|
|
|
96
90
|
}
|
|
97
91
|
|
|
98
92
|
export type GetReviewResponse = GetReviewResponseDTO;
|
|
99
|
-
|
|
100
|
-
export interface GetReviewRequest
|
|
101
|
-
extends BaseRequest,
|
|
102
|
-
RequestQuery<GetReviewQuery>,
|
|
103
|
-
GetReviewPath {}
|
package/src/interface/search.ts
CHANGED
|
@@ -156,8 +156,6 @@ export interface GetSearchOrderQuery {
|
|
|
156
156
|
|
|
157
157
|
export type GetSearchOrderResponse = GetOrderPaginatedResult;
|
|
158
158
|
|
|
159
|
-
export interface GetSearchOrderRequest extends BaseRequest, RequestQuery<GetSearchOrderQuery> {}
|
|
160
|
-
|
|
161
159
|
// GET /search/location
|
|
162
160
|
|
|
163
161
|
export interface GetSearchLocationQuery {
|
|
@@ -178,7 +176,3 @@ export interface GetSearchLocationQuery {
|
|
|
178
176
|
}
|
|
179
177
|
|
|
180
178
|
export type GetSearchLocationResponse = GetLocationPaginatedResult;
|
|
181
|
-
|
|
182
|
-
export interface GetSearchLocationRequest
|
|
183
|
-
extends BaseRequest,
|
|
184
|
-
RequestQuery<GetSearchLocationQuery> {}
|
package/src/interface/tax.ts
CHANGED
|
@@ -107,14 +107,8 @@ export interface TaxHealthCheckQuery {
|
|
|
107
107
|
|
|
108
108
|
export type TaxHealthCheckResponse = {};
|
|
109
109
|
|
|
110
|
-
export interface TaxHealthCheckRequest extends BaseRequest, RequestQuery<TaxHealthCheckQuery> {}
|
|
111
|
-
|
|
112
110
|
// POST /tax/quote - get tax quote from 3rd party tax library
|
|
113
111
|
|
|
114
112
|
export type PostQuoteTaxBody = TaxRequestDTO;
|
|
115
113
|
|
|
116
114
|
export type PostQuoteTaxResponse = TaxResponseDTO;
|
|
117
|
-
|
|
118
|
-
export interface PostQuoteTaxRequest extends BaseRequest {
|
|
119
|
-
body: PostQuoteTaxBody;
|
|
120
|
-
}
|