@peabody-soft/mbs-model-ts 1.0.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/LICENCE +661 -0
- package/dist/Address.d.ts +33 -0
- package/dist/Address.js +97 -0
- package/dist/Attachment.d.ts +16 -0
- package/dist/Attachment.js +49 -0
- package/dist/AttachmentBaseUrl.d.ts +11 -0
- package/dist/AttachmentBaseUrl.js +41 -0
- package/dist/AuthTokens.d.ts +13 -0
- package/dist/AuthTokens.js +30 -0
- package/dist/Business.d.ts +44 -0
- package/dist/Business.js +87 -0
- package/dist/BusinessIdentifier.d.ts +8 -0
- package/dist/BusinessIdentifier.js +14 -0
- package/dist/BusinessLink.d.ts +21 -0
- package/dist/BusinessLink.js +61 -0
- package/dist/BusinessProfile.d.ts +11 -0
- package/dist/BusinessProfile.js +27 -0
- package/dist/CartEditor.d.ts +59 -0
- package/dist/CartEditor.js +324 -0
- package/dist/Catalog.d.ts +28 -0
- package/dist/Catalog.js +115 -0
- package/dist/Constants.d.ts +10 -0
- package/dist/Constants.js +43 -0
- package/dist/ContainerNames.d.ts +2 -0
- package/dist/ContainerNames.js +21 -0
- package/dist/Database.d.ts +15 -0
- package/dist/Database.js +1 -0
- package/dist/Entity.d.ts +27 -0
- package/dist/Entity.js +69 -0
- package/dist/Enums.d.ts +16 -0
- package/dist/Enums.js +18 -0
- package/dist/Exceptions.d.ts +4 -0
- package/dist/Exceptions.js +8 -0
- package/dist/GeneralSettings.d.ts +46 -0
- package/dist/GeneralSettings.js +99 -0
- package/dist/HttpStatusCodes.d.ts +2 -0
- package/dist/HttpStatusCodes.js +34 -0
- package/dist/Ids.d.ts +17 -0
- package/dist/Ids.js +78 -0
- package/dist/Item.d.ts +12 -0
- package/dist/Item.js +30 -0
- package/dist/LatLong.d.ts +7 -0
- package/dist/LatLong.js +17 -0
- package/dist/LiveData.d.ts +30 -0
- package/dist/LiveData.js +76 -0
- package/dist/Measures.d.ts +20 -0
- package/dist/Measures.js +34 -0
- package/dist/Message.d.ts +16 -0
- package/dist/Message.js +32 -0
- package/dist/MockDatabase.d.ts +19 -0
- package/dist/MockDatabase.js +73 -0
- package/dist/Model.d.ts +63 -0
- package/dist/Model.js +629 -0
- package/dist/Order.d.ts +31 -0
- package/dist/Order.js +70 -0
- package/dist/Package.d.ts +25 -0
- package/dist/Package.js +52 -0
- package/dist/PackageIdentifier.d.ts +8 -0
- package/dist/PackageIdentifier.js +14 -0
- package/dist/PaymentMethodDetail.d.ts +8 -0
- package/dist/PaymentMethodDetail.js +17 -0
- package/dist/Photo.d.ts +11 -0
- package/dist/Photo.js +29 -0
- package/dist/Price.d.ts +17 -0
- package/dist/Price.js +52 -0
- package/dist/PriceList.d.ts +3 -0
- package/dist/PriceList.js +5 -0
- package/dist/Product.d.ts +33 -0
- package/dist/Product.js +84 -0
- package/dist/ProductCategory.d.ts +10 -0
- package/dist/ProductCategory.js +18 -0
- package/dist/Profile.d.ts +20 -0
- package/dist/Profile.js +55 -0
- package/dist/ProtoMap.d.ts +71 -0
- package/dist/ProtoMap.js +1126 -0
- package/dist/Routes.d.ts +7 -0
- package/dist/Routes.js +12 -0
- package/dist/Service.d.ts +16 -0
- package/dist/Service.js +1 -0
- package/dist/ServiceExceptions.d.ts +40 -0
- package/dist/ServiceExceptions.js +84 -0
- package/dist/ServiceProxy.d.ts +25 -0
- package/dist/ServiceProxy.js +117 -0
- package/dist/ShoppingList.d.ts +64 -0
- package/dist/ShoppingList.js +188 -0
- package/dist/SyncCache.d.ts +28 -0
- package/dist/SyncCache.js +137 -0
- package/dist/SyncKeys.d.ts +5 -0
- package/dist/SyncKeys.js +41 -0
- package/dist/SyncState.d.ts +8 -0
- package/dist/SyncState.js +30 -0
- package/dist/Tax.d.ts +10 -0
- package/dist/Tax.js +30 -0
- package/dist/UserProfile.d.ts +16 -0
- package/dist/UserProfile.js +40 -0
- package/dist/WorkingDays.d.ts +33 -0
- package/dist/WorkingDays.js +121 -0
- package/dist/generated/Address.d.ts +77 -0
- package/dist/generated/Address.js +110 -0
- package/dist/generated/AddressList.d.ts +39 -0
- package/dist/generated/AddressList.js +60 -0
- package/dist/generated/AddressType.d.ts +15 -0
- package/dist/generated/AddressType.js +20 -0
- package/dist/generated/Attachment.d.ts +66 -0
- package/dist/generated/Attachment.js +89 -0
- package/dist/generated/AttachmentType.d.ts +154 -0
- package/dist/generated/AttachmentType.js +159 -0
- package/dist/generated/AuthTokens.d.ts +56 -0
- package/dist/generated/AuthTokens.js +74 -0
- package/dist/generated/AuthenticationMethod.d.ts +24 -0
- package/dist/generated/AuthenticationMethod.js +29 -0
- package/dist/generated/Business.d.ts +54 -0
- package/dist/generated/Business.js +75 -0
- package/dist/generated/BusinessIdentifier.d.ts +36 -0
- package/dist/generated/BusinessIdentifier.js +60 -0
- package/dist/generated/BusinessIdentifierType.d.ts +49 -0
- package/dist/generated/BusinessIdentifierType.js +54 -0
- package/dist/generated/BusinessLink.d.ts +76 -0
- package/dist/generated/BusinessLink.js +99 -0
- package/dist/generated/BusinessSyncInRequest.d.ts +42 -0
- package/dist/generated/BusinessSyncInRequest.js +60 -0
- package/dist/generated/BusinessSyncInResponse.d.ts +42 -0
- package/dist/generated/BusinessSyncInResponse.js +60 -0
- package/dist/generated/BusinessSyncOutRequest.d.ts +82 -0
- package/dist/generated/BusinessSyncOutRequest.js +107 -0
- package/dist/generated/BusinessSyncOutResponse.d.ts +106 -0
- package/dist/generated/BusinessSyncOutResponse.js +139 -0
- package/dist/generated/Configuration.d.ts +48 -0
- package/dist/generated/Configuration.js +63 -0
- package/dist/generated/Constants.d.ts +474 -0
- package/dist/generated/Constants.js +479 -0
- package/dist/generated/CreateUserRequest.d.ts +37 -0
- package/dist/generated/CreateUserRequest.js +59 -0
- package/dist/generated/DimensionUnit.d.ts +28 -0
- package/dist/generated/DimensionUnit.js +33 -0
- package/dist/generated/Dimensions.d.ts +41 -0
- package/dist/generated/Dimensions.js +76 -0
- package/dist/generated/Entity.d.ts +62 -0
- package/dist/generated/Entity.js +83 -0
- package/dist/generated/FulfillmentMode.d.ts +32 -0
- package/dist/generated/FulfillmentMode.js +37 -0
- package/dist/generated/GeneralSettings.d.ts +141 -0
- package/dist/generated/GeneralSettings.js +186 -0
- package/dist/generated/Item.d.ts +54 -0
- package/dist/generated/Item.js +82 -0
- package/dist/generated/LatLong.d.ts +36 -0
- package/dist/generated/LatLong.js +59 -0
- package/dist/generated/Message.d.ts +80 -0
- package/dist/generated/Message.js +114 -0
- package/dist/generated/MessageType.d.ts +34 -0
- package/dist/generated/MessageType.js +39 -0
- package/dist/generated/OrderStatus.d.ts +50 -0
- package/dist/generated/OrderStatus.js +55 -0
- package/dist/generated/Package.d.ts +63 -0
- package/dist/generated/Package.js +92 -0
- package/dist/generated/PackageIdentifier.d.ts +36 -0
- package/dist/generated/PackageIdentifier.js +60 -0
- package/dist/generated/PackageIdentifierType.d.ts +49 -0
- package/dist/generated/PackageIdentifierType.js +54 -0
- package/dist/generated/PartyPreferencesPayload.d.ts +41 -0
- package/dist/generated/PartyPreferencesPayload.js +60 -0
- package/dist/generated/PaymentMethod.d.ts +20 -0
- package/dist/generated/PaymentMethod.js +25 -0
- package/dist/generated/PaymentMethodDetail.d.ts +37 -0
- package/dist/generated/PaymentMethodDetail.js +59 -0
- package/dist/generated/Price.d.ts +52 -0
- package/dist/generated/Price.js +75 -0
- package/dist/generated/PriceList.d.ts +34 -0
- package/dist/generated/PriceList.js +51 -0
- package/dist/generated/Product.d.ts +77 -0
- package/dist/generated/Product.js +106 -0
- package/dist/generated/ProductCategory.d.ts +32 -0
- package/dist/generated/ProductCategory.js +51 -0
- package/dist/generated/ProductType.d.ts +42 -0
- package/dist/generated/ProductType.js +47 -0
- package/dist/generated/ProfileSyncOutRequest.d.ts +51 -0
- package/dist/generated/ProfileSyncOutRequest.js +75 -0
- package/dist/generated/ProfileSyncOutResponse.d.ts +56 -0
- package/dist/generated/ProfileSyncOutResponse.js +77 -0
- package/dist/generated/ReservedPackage.d.ts +34 -0
- package/dist/generated/ReservedPackage.js +39 -0
- package/dist/generated/Role.d.ts +71 -0
- package/dist/generated/Role.js +76 -0
- package/dist/generated/SalesOrderPayload.d.ts +85 -0
- package/dist/generated/SalesOrderPayload.js +123 -0
- package/dist/generated/ShoppingList.d.ts +99 -0
- package/dist/generated/ShoppingList.js +132 -0
- package/dist/generated/ShoppingListItem.d.ts +102 -0
- package/dist/generated/ShoppingListItem.js +139 -0
- package/dist/generated/TaskStatus.d.ts +20 -0
- package/dist/generated/TaskStatus.js +25 -0
- package/dist/generated/Tax.d.ts +37 -0
- package/dist/generated/Tax.js +60 -0
- package/dist/generated/TaxType.d.ts +25 -0
- package/dist/generated/TaxType.js +30 -0
- package/dist/generated/UrlAndToken.d.ts +54 -0
- package/dist/generated/UrlAndToken.js +67 -0
- package/dist/generated/User.d.ts +63 -0
- package/dist/generated/User.js +89 -0
- package/dist/generated/Weight.d.ts +33 -0
- package/dist/generated/Weight.js +60 -0
- package/dist/generated/WeightUnit.d.ts +28 -0
- package/dist/generated/WeightUnit.js +33 -0
- package/dist/generated/WorkingDays.d.ts +42 -0
- package/dist/generated/WorkingDays.js +68 -0
- package/dist/generated/WorkingHours.d.ts +33 -0
- package/dist/generated/WorkingHours.js +52 -0
- package/dist/generated/WorkingHoursRange.d.ts +42 -0
- package/dist/generated/WorkingHoursRange.js +59 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +60 -0
- package/package.json +55 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// @generated by protobuf-ts 2.11.1 with parameter long_type_bigint
|
|
3
|
+
// @generated from protobuf file "AttachmentType.proto" (package "com.merabills.storefront", syntax proto3)
|
|
4
|
+
// tslint:disable
|
|
5
|
+
/**
|
|
6
|
+
* The type of an attachment, and - for catalog and store images - the slot the image occupies.
|
|
7
|
+
* Values match the ids of the corresponding Java enum entries and must never be changed.
|
|
8
|
+
*
|
|
9
|
+
* @generated from protobuf enum com.merabills.storefront.AttachmentType
|
|
10
|
+
*/
|
|
11
|
+
export var AttachmentType;
|
|
12
|
+
(function (AttachmentType) {
|
|
13
|
+
/**
|
|
14
|
+
* General purpose attachments of any entity
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf enum value: GENERAL_0 = 0;
|
|
17
|
+
*/
|
|
18
|
+
AttachmentType[AttachmentType["GENERAL_0"] = 0] = "GENERAL_0";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf enum value: GENERAL_1 = 1;
|
|
21
|
+
*/
|
|
22
|
+
AttachmentType[AttachmentType["GENERAL_1"] = 1] = "GENERAL_1";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf enum value: GENERAL_2 = 2;
|
|
25
|
+
*/
|
|
26
|
+
AttachmentType[AttachmentType["GENERAL_2"] = 2] = "GENERAL_2";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf enum value: GENERAL_3 = 3;
|
|
29
|
+
*/
|
|
30
|
+
AttachmentType[AttachmentType["GENERAL_3"] = 3] = "GENERAL_3";
|
|
31
|
+
/**
|
|
32
|
+
* The main catalog image of a product or a package
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf enum value: CATALOG_MAIN_0 = 8;
|
|
35
|
+
*/
|
|
36
|
+
AttachmentType[AttachmentType["CATALOG_MAIN_0"] = 8] = "CATALOG_MAIN_0";
|
|
37
|
+
/**
|
|
38
|
+
* Catalog images showing the product in use
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf enum value: CATALOG_LIFESTYLE_0 = 16;
|
|
41
|
+
*/
|
|
42
|
+
AttachmentType[AttachmentType["CATALOG_LIFESTYLE_0"] = 16] = "CATALOG_LIFESTYLE_0";
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf enum value: CATALOG_LIFESTYLE_1 = 17;
|
|
45
|
+
*/
|
|
46
|
+
AttachmentType[AttachmentType["CATALOG_LIFESTYLE_1"] = 17] = "CATALOG_LIFESTYLE_1";
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf enum value: CATALOG_LIFESTYLE_2 = 18;
|
|
49
|
+
*/
|
|
50
|
+
AttachmentType[AttachmentType["CATALOG_LIFESTYLE_2"] = 18] = "CATALOG_LIFESTYLE_2";
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf enum value: CATALOG_LIFESTYLE_3 = 19;
|
|
53
|
+
*/
|
|
54
|
+
AttachmentType[AttachmentType["CATALOG_LIFESTYLE_3"] = 19] = "CATALOG_LIFESTYLE_3";
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf enum value: CATALOG_LIFESTYLE_4 = 20;
|
|
57
|
+
*/
|
|
58
|
+
AttachmentType[AttachmentType["CATALOG_LIFESTYLE_4"] = 20] = "CATALOG_LIFESTYLE_4";
|
|
59
|
+
/**
|
|
60
|
+
* @generated from protobuf enum value: CATALOG_LIFESTYLE_5 = 21;
|
|
61
|
+
*/
|
|
62
|
+
AttachmentType[AttachmentType["CATALOG_LIFESTYLE_5"] = 21] = "CATALOG_LIFESTYLE_5";
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf enum value: CATALOG_LIFESTYLE_6 = 22;
|
|
65
|
+
*/
|
|
66
|
+
AttachmentType[AttachmentType["CATALOG_LIFESTYLE_6"] = 22] = "CATALOG_LIFESTYLE_6";
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf enum value: CATALOG_LIFESTYLE_7 = 23;
|
|
69
|
+
*/
|
|
70
|
+
AttachmentType[AttachmentType["CATALOG_LIFESTYLE_7"] = 23] = "CATALOG_LIFESTYLE_7";
|
|
71
|
+
/**
|
|
72
|
+
* Catalog images of the product from different angles
|
|
73
|
+
*
|
|
74
|
+
* @generated from protobuf enum value: CATALOG_ANGLE_0 = 40;
|
|
75
|
+
*/
|
|
76
|
+
AttachmentType[AttachmentType["CATALOG_ANGLE_0"] = 40] = "CATALOG_ANGLE_0";
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf enum value: CATALOG_ANGLE_1 = 41;
|
|
79
|
+
*/
|
|
80
|
+
AttachmentType[AttachmentType["CATALOG_ANGLE_1"] = 41] = "CATALOG_ANGLE_1";
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf enum value: CATALOG_ANGLE_2 = 42;
|
|
83
|
+
*/
|
|
84
|
+
AttachmentType[AttachmentType["CATALOG_ANGLE_2"] = 42] = "CATALOG_ANGLE_2";
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf enum value: CATALOG_ANGLE_3 = 43;
|
|
87
|
+
*/
|
|
88
|
+
AttachmentType[AttachmentType["CATALOG_ANGLE_3"] = 43] = "CATALOG_ANGLE_3";
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf enum value: CATALOG_ANGLE_4 = 44;
|
|
91
|
+
*/
|
|
92
|
+
AttachmentType[AttachmentType["CATALOG_ANGLE_4"] = 44] = "CATALOG_ANGLE_4";
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf enum value: CATALOG_ANGLE_5 = 45;
|
|
95
|
+
*/
|
|
96
|
+
AttachmentType[AttachmentType["CATALOG_ANGLE_5"] = 45] = "CATALOG_ANGLE_5";
|
|
97
|
+
/**
|
|
98
|
+
* @generated from protobuf enum value: CATALOG_ANGLE_6 = 46;
|
|
99
|
+
*/
|
|
100
|
+
AttachmentType[AttachmentType["CATALOG_ANGLE_6"] = 46] = "CATALOG_ANGLE_6";
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf enum value: CATALOG_ANGLE_7 = 47;
|
|
103
|
+
*/
|
|
104
|
+
AttachmentType[AttachmentType["CATALOG_ANGLE_7"] = 47] = "CATALOG_ANGLE_7";
|
|
105
|
+
/**
|
|
106
|
+
* Other catalog images
|
|
107
|
+
*
|
|
108
|
+
* @generated from protobuf enum value: CATALOG_OTHER_0 = 56;
|
|
109
|
+
*/
|
|
110
|
+
AttachmentType[AttachmentType["CATALOG_OTHER_0"] = 56] = "CATALOG_OTHER_0";
|
|
111
|
+
/**
|
|
112
|
+
* @generated from protobuf enum value: CATALOG_OTHER_1 = 57;
|
|
113
|
+
*/
|
|
114
|
+
AttachmentType[AttachmentType["CATALOG_OTHER_1"] = 57] = "CATALOG_OTHER_1";
|
|
115
|
+
/**
|
|
116
|
+
* @generated from protobuf enum value: CATALOG_OTHER_2 = 58;
|
|
117
|
+
*/
|
|
118
|
+
AttachmentType[AttachmentType["CATALOG_OTHER_2"] = 58] = "CATALOG_OTHER_2";
|
|
119
|
+
/**
|
|
120
|
+
* @generated from protobuf enum value: CATALOG_OTHER_3 = 59;
|
|
121
|
+
*/
|
|
122
|
+
AttachmentType[AttachmentType["CATALOG_OTHER_3"] = 59] = "CATALOG_OTHER_3";
|
|
123
|
+
/**
|
|
124
|
+
* Photos of the store / business
|
|
125
|
+
*
|
|
126
|
+
* @generated from protobuf enum value: STORE_0 = 64;
|
|
127
|
+
*/
|
|
128
|
+
AttachmentType[AttachmentType["STORE_0"] = 64] = "STORE_0";
|
|
129
|
+
/**
|
|
130
|
+
* @generated from protobuf enum value: STORE_1 = 65;
|
|
131
|
+
*/
|
|
132
|
+
AttachmentType[AttachmentType["STORE_1"] = 65] = "STORE_1";
|
|
133
|
+
/**
|
|
134
|
+
* @generated from protobuf enum value: STORE_2 = 66;
|
|
135
|
+
*/
|
|
136
|
+
AttachmentType[AttachmentType["STORE_2"] = 66] = "STORE_2";
|
|
137
|
+
/**
|
|
138
|
+
* @generated from protobuf enum value: STORE_3 = 67;
|
|
139
|
+
*/
|
|
140
|
+
AttachmentType[AttachmentType["STORE_3"] = 67] = "STORE_3";
|
|
141
|
+
/**
|
|
142
|
+
* Attachments of a transaction
|
|
143
|
+
*
|
|
144
|
+
* @generated from protobuf enum value: TRANSACTION_0 = 80;
|
|
145
|
+
*/
|
|
146
|
+
AttachmentType[AttachmentType["TRANSACTION_0"] = 80] = "TRANSACTION_0";
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf enum value: TRANSACTION_1 = 81;
|
|
149
|
+
*/
|
|
150
|
+
AttachmentType[AttachmentType["TRANSACTION_1"] = 81] = "TRANSACTION_1";
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf enum value: TRANSACTION_2 = 82;
|
|
153
|
+
*/
|
|
154
|
+
AttachmentType[AttachmentType["TRANSACTION_2"] = 82] = "TRANSACTION_2";
|
|
155
|
+
/**
|
|
156
|
+
* @generated from protobuf enum value: TRANSACTION_3 = 83;
|
|
157
|
+
*/
|
|
158
|
+
AttachmentType[AttachmentType["TRANSACTION_3"] = 83] = "TRANSACTION_3";
|
|
159
|
+
})(AttachmentType || (AttachmentType = {}));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
4
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
import { AuthenticationMethod } from "./AuthenticationMethod";
|
|
8
|
+
/**
|
|
9
|
+
* The tokens that prove who is making a request. Serialized into the authorization header of every
|
|
10
|
+
* request, never into a body; every value is a bearer credential - never log or url-encode one.
|
|
11
|
+
* Not included because the server derives it: the subject id and phone number, parsed by the server
|
|
12
|
+
* out of authenticationToken rather than trusted from a field.
|
|
13
|
+
*
|
|
14
|
+
* @generated from protobuf message com.merabills.storefront.AuthTokens
|
|
15
|
+
*/
|
|
16
|
+
export interface AuthTokens {
|
|
17
|
+
/**
|
|
18
|
+
* Which identity provider issued authenticationToken, and so how the server parses it. Always
|
|
19
|
+
* set; there is no unspecified value because zero is FIREBASE.
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf field: com.merabills.storefront.AuthenticationMethod authenticationMethod = 1
|
|
22
|
+
*/
|
|
23
|
+
authenticationMethod: AuthenticationMethod;
|
|
24
|
+
/**
|
|
25
|
+
* The credential from that identity provider - a Firebase id token when the method is FIREBASE.
|
|
26
|
+
* Always set. Not issued or renewed by this server; refreshed with the identity provider.
|
|
27
|
+
*
|
|
28
|
+
* @generated from protobuf field: string authenticationToken = 2
|
|
29
|
+
*/
|
|
30
|
+
authenticationToken: string;
|
|
31
|
+
/**
|
|
32
|
+
* Token proving which MeraBills user the subject is, issued and signed by this server. Absent
|
|
33
|
+
* until the profile sync out has been called once, and again once it expires.
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf field: optional string userToken = 3
|
|
36
|
+
*/
|
|
37
|
+
userToken?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Token authorizing the caller against one business - the BusinessLink.linkToken of that
|
|
40
|
+
* business. Absent for a request that names no business, required for one that does.
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf field: optional string linkToken = 4
|
|
43
|
+
*/
|
|
44
|
+
linkToken?: string;
|
|
45
|
+
}
|
|
46
|
+
declare class AuthTokens$Type extends MessageType<AuthTokens> {
|
|
47
|
+
constructor();
|
|
48
|
+
create(value?: PartialMessage<AuthTokens>): AuthTokens;
|
|
49
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthTokens): AuthTokens;
|
|
50
|
+
internalBinaryWrite(message: AuthTokens, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @generated MessageType for protobuf message com.merabills.storefront.AuthTokens
|
|
54
|
+
*/
|
|
55
|
+
export declare const AuthTokens: AuthTokens$Type;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
2
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { AuthenticationMethod } from "./AuthenticationMethod";
|
|
6
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7
|
+
class AuthTokens$Type extends MessageType {
|
|
8
|
+
constructor() {
|
|
9
|
+
super("com.merabills.storefront.AuthTokens", [
|
|
10
|
+
{ no: 1, name: "authenticationMethod", kind: "enum", T: () => ["com.merabills.storefront.AuthenticationMethod", AuthenticationMethod] },
|
|
11
|
+
{ no: 2, name: "authenticationToken", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12
|
+
{ no: 3, name: "userToken", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
13
|
+
{ no: 4, name: "linkToken", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
14
|
+
]);
|
|
15
|
+
}
|
|
16
|
+
create(value) {
|
|
17
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
18
|
+
message.authenticationMethod = 0;
|
|
19
|
+
message.authenticationToken = "";
|
|
20
|
+
if (value !== undefined)
|
|
21
|
+
reflectionMergePartial(this, message, value);
|
|
22
|
+
return message;
|
|
23
|
+
}
|
|
24
|
+
internalBinaryRead(reader, length, options, target) {
|
|
25
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
let [fieldNo, wireType] = reader.tag();
|
|
28
|
+
switch (fieldNo) {
|
|
29
|
+
case /* com.merabills.storefront.AuthenticationMethod authenticationMethod */ 1:
|
|
30
|
+
message.authenticationMethod = reader.int32();
|
|
31
|
+
break;
|
|
32
|
+
case /* string authenticationToken */ 2:
|
|
33
|
+
message.authenticationToken = reader.string();
|
|
34
|
+
break;
|
|
35
|
+
case /* optional string userToken */ 3:
|
|
36
|
+
message.userToken = reader.string();
|
|
37
|
+
break;
|
|
38
|
+
case /* optional string linkToken */ 4:
|
|
39
|
+
message.linkToken = reader.string();
|
|
40
|
+
break;
|
|
41
|
+
default:
|
|
42
|
+
let u = options.readUnknownField;
|
|
43
|
+
if (u === "throw")
|
|
44
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
45
|
+
let d = reader.skip(wireType);
|
|
46
|
+
if (u !== false)
|
|
47
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return message;
|
|
51
|
+
}
|
|
52
|
+
internalBinaryWrite(message, writer, options) {
|
|
53
|
+
/* com.merabills.storefront.AuthenticationMethod authenticationMethod = 1; */
|
|
54
|
+
if (message.authenticationMethod !== 0)
|
|
55
|
+
writer.tag(1, WireType.Varint).int32(message.authenticationMethod);
|
|
56
|
+
/* string authenticationToken = 2; */
|
|
57
|
+
if (message.authenticationToken !== "")
|
|
58
|
+
writer.tag(2, WireType.LengthDelimited).string(message.authenticationToken);
|
|
59
|
+
/* optional string userToken = 3; */
|
|
60
|
+
if (message.userToken !== undefined)
|
|
61
|
+
writer.tag(3, WireType.LengthDelimited).string(message.userToken);
|
|
62
|
+
/* optional string linkToken = 4; */
|
|
63
|
+
if (message.linkToken !== undefined)
|
|
64
|
+
writer.tag(4, WireType.LengthDelimited).string(message.linkToken);
|
|
65
|
+
let u = options.writeUnknownFields;
|
|
66
|
+
if (u !== false)
|
|
67
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
68
|
+
return writer;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @generated MessageType for protobuf message com.merabills.storefront.AuthTokens
|
|
73
|
+
*/
|
|
74
|
+
export const AuthTokens = new AuthTokens$Type();
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which identity provider issued the AuthTokens.authenticationToken of a request, and so how the
|
|
3
|
+
* server parses it.
|
|
4
|
+
* Values match the ids of the corresponding Java enum entries and must never be changed.
|
|
5
|
+
* Note that there is no unspecified value: zero is FIREBASE. AuthTokens.authenticationMethod is
|
|
6
|
+
* always set, so a client never needs one.
|
|
7
|
+
*
|
|
8
|
+
* @generated from protobuf enum com.merabills.storefront.AuthenticationMethod
|
|
9
|
+
*/
|
|
10
|
+
export declare enum AuthenticationMethod {
|
|
11
|
+
/**
|
|
12
|
+
* The authentication token is a Firebase id token; the subject id parsed from it is a Firebase
|
|
13
|
+
* uid, not the same thing as User.entity.id.
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf enum value: FIREBASE = 0;
|
|
16
|
+
*/
|
|
17
|
+
FIREBASE = 0,
|
|
18
|
+
/**
|
|
19
|
+
* Reserved for internal administrative callers. A storefront never uses this method.
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf enum value: ADMIN = 127;
|
|
22
|
+
*/
|
|
23
|
+
ADMIN = 127
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// @generated by protobuf-ts 2.11.1 with parameter long_type_bigint
|
|
3
|
+
// @generated from protobuf file "AuthenticationMethod.proto" (package "com.merabills.storefront", syntax proto3)
|
|
4
|
+
// tslint:disable
|
|
5
|
+
/**
|
|
6
|
+
* Which identity provider issued the AuthTokens.authenticationToken of a request, and so how the
|
|
7
|
+
* server parses it.
|
|
8
|
+
* Values match the ids of the corresponding Java enum entries and must never be changed.
|
|
9
|
+
* Note that there is no unspecified value: zero is FIREBASE. AuthTokens.authenticationMethod is
|
|
10
|
+
* always set, so a client never needs one.
|
|
11
|
+
*
|
|
12
|
+
* @generated from protobuf enum com.merabills.storefront.AuthenticationMethod
|
|
13
|
+
*/
|
|
14
|
+
export var AuthenticationMethod;
|
|
15
|
+
(function (AuthenticationMethod) {
|
|
16
|
+
/**
|
|
17
|
+
* The authentication token is a Firebase id token; the subject id parsed from it is a Firebase
|
|
18
|
+
* uid, not the same thing as User.entity.id.
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf enum value: FIREBASE = 0;
|
|
21
|
+
*/
|
|
22
|
+
AuthenticationMethod[AuthenticationMethod["FIREBASE"] = 0] = "FIREBASE";
|
|
23
|
+
/**
|
|
24
|
+
* Reserved for internal administrative callers. A storefront never uses this method.
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf enum value: ADMIN = 127;
|
|
27
|
+
*/
|
|
28
|
+
AuthenticationMethod[AuthenticationMethod["ADMIN"] = 127] = "ADMIN";
|
|
29
|
+
})(AuthenticationMethod || (AuthenticationMethod = {}));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
4
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
import { Entity } from "./Entity";
|
|
8
|
+
/**
|
|
9
|
+
* A business that a customer can buy from. Contains no other entity: settings arrive as a
|
|
10
|
+
* Configuration, photos as Attachments whose owningEntityId is this business, and the catalog as
|
|
11
|
+
* the item entities of a BusinessSyncOutResponse.
|
|
12
|
+
* Excluded: category (and the derived BusinessType), displayNameOld, allowJoinWithoutInvitation,
|
|
13
|
+
* forTraining, all Translations fields.
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf message com.merabills.storefront.Business
|
|
16
|
+
*/
|
|
17
|
+
export interface Business {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf field: com.merabills.storefront.Entity entity = 1
|
|
20
|
+
*/
|
|
21
|
+
entity?: Entity;
|
|
22
|
+
/**
|
|
23
|
+
* Unique, lower case, url friendly id of this business
|
|
24
|
+
* (Constants.BUSINESS_ID_MIN_LENGTH to Constants.BUSINESS_ID_MAX_LENGTH)
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf field: string businessId = 2
|
|
27
|
+
*/
|
|
28
|
+
businessId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Name of this business, as displayed to customers ("Warm Loaf")
|
|
31
|
+
* (Constants.BUSINESS_DISPLAY_NAME_MIN_LENGTH to Constants.BUSINESS_DISPLAY_NAME_MAX_LENGTH)
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf field: string displayName = 3
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
/**
|
|
37
|
+
* ISO 3166-1 numeric country code. Every amount in this protocol is in the currency of this
|
|
38
|
+
* country - no amount carries a currency of its own.
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf field: int32 countryCode = 4
|
|
41
|
+
*/
|
|
42
|
+
countryCode: number;
|
|
43
|
+
}
|
|
44
|
+
declare class Business$Type extends MessageType<Business> {
|
|
45
|
+
constructor();
|
|
46
|
+
create(value?: PartialMessage<Business>): Business;
|
|
47
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Business): Business;
|
|
48
|
+
internalBinaryWrite(message: Business, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @generated MessageType for protobuf message com.merabills.storefront.Business
|
|
52
|
+
*/
|
|
53
|
+
export declare const Business: Business$Type;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
2
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { Entity } from "./Entity";
|
|
6
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7
|
+
class Business$Type extends MessageType {
|
|
8
|
+
constructor() {
|
|
9
|
+
super("com.merabills.storefront.Business", [
|
|
10
|
+
{ no: 1, name: "entity", kind: "message", T: () => Entity },
|
|
11
|
+
{ no: 2, name: "businessId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12
|
+
{ no: 3, name: "displayName", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
13
|
+
{ no: 4, name: "countryCode", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
14
|
+
]);
|
|
15
|
+
}
|
|
16
|
+
create(value) {
|
|
17
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
18
|
+
message.businessId = "";
|
|
19
|
+
message.displayName = "";
|
|
20
|
+
message.countryCode = 0;
|
|
21
|
+
if (value !== undefined)
|
|
22
|
+
reflectionMergePartial(this, message, value);
|
|
23
|
+
return message;
|
|
24
|
+
}
|
|
25
|
+
internalBinaryRead(reader, length, options, target) {
|
|
26
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
27
|
+
while (reader.pos < end) {
|
|
28
|
+
let [fieldNo, wireType] = reader.tag();
|
|
29
|
+
switch (fieldNo) {
|
|
30
|
+
case /* com.merabills.storefront.Entity entity */ 1:
|
|
31
|
+
message.entity = Entity.internalBinaryRead(reader, reader.uint32(), options, message.entity);
|
|
32
|
+
break;
|
|
33
|
+
case /* string businessId */ 2:
|
|
34
|
+
message.businessId = reader.string();
|
|
35
|
+
break;
|
|
36
|
+
case /* string displayName */ 3:
|
|
37
|
+
message.displayName = reader.string();
|
|
38
|
+
break;
|
|
39
|
+
case /* int32 countryCode */ 4:
|
|
40
|
+
message.countryCode = reader.int32();
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
let u = options.readUnknownField;
|
|
44
|
+
if (u === "throw")
|
|
45
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
46
|
+
let d = reader.skip(wireType);
|
|
47
|
+
if (u !== false)
|
|
48
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return message;
|
|
52
|
+
}
|
|
53
|
+
internalBinaryWrite(message, writer, options) {
|
|
54
|
+
/* com.merabills.storefront.Entity entity = 1; */
|
|
55
|
+
if (message.entity)
|
|
56
|
+
Entity.internalBinaryWrite(message.entity, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
57
|
+
/* string businessId = 2; */
|
|
58
|
+
if (message.businessId !== "")
|
|
59
|
+
writer.tag(2, WireType.LengthDelimited).string(message.businessId);
|
|
60
|
+
/* string displayName = 3; */
|
|
61
|
+
if (message.displayName !== "")
|
|
62
|
+
writer.tag(3, WireType.LengthDelimited).string(message.displayName);
|
|
63
|
+
/* int32 countryCode = 4; */
|
|
64
|
+
if (message.countryCode !== 0)
|
|
65
|
+
writer.tag(4, WireType.Varint).int32(message.countryCode);
|
|
66
|
+
let u = options.writeUnknownFields;
|
|
67
|
+
if (u !== false)
|
|
68
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
69
|
+
return writer;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @generated MessageType for protobuf message com.merabills.storefront.Business
|
|
74
|
+
*/
|
|
75
|
+
export const Business = new Business$Type();
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
4
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
import { BusinessIdentifierType } from "./BusinessIdentifierType";
|
|
8
|
+
/**
|
|
9
|
+
* An identifier of a business, and the kind of identifier it is. A protobuf map cannot be keyed by
|
|
10
|
+
* an enum, so the identifiers of a business are a repeated pair rather than a map.
|
|
11
|
+
*
|
|
12
|
+
* @generated from protobuf message com.merabills.storefront.BusinessIdentifier
|
|
13
|
+
*/
|
|
14
|
+
export interface BusinessIdentifier {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf field: com.merabills.storefront.BusinessIdentifierType type = 1
|
|
17
|
+
*/
|
|
18
|
+
type: BusinessIdentifierType;
|
|
19
|
+
/**
|
|
20
|
+
* The identifier itself (at most Constants.IDENTIFIER_MAX_LENGTH)
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf field: string value = 2
|
|
23
|
+
*/
|
|
24
|
+
value: string;
|
|
25
|
+
}
|
|
26
|
+
declare class BusinessIdentifier$Type extends MessageType<BusinessIdentifier> {
|
|
27
|
+
constructor();
|
|
28
|
+
create(value?: PartialMessage<BusinessIdentifier>): BusinessIdentifier;
|
|
29
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BusinessIdentifier): BusinessIdentifier;
|
|
30
|
+
internalBinaryWrite(message: BusinessIdentifier, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @generated MessageType for protobuf message com.merabills.storefront.BusinessIdentifier
|
|
34
|
+
*/
|
|
35
|
+
export declare const BusinessIdentifier: BusinessIdentifier$Type;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
2
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { BusinessIdentifierType } from "./BusinessIdentifierType";
|
|
6
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7
|
+
class BusinessIdentifier$Type extends MessageType {
|
|
8
|
+
constructor() {
|
|
9
|
+
super("com.merabills.storefront.BusinessIdentifier", [
|
|
10
|
+
{ no: 1, name: "type", kind: "enum", T: () => ["com.merabills.storefront.BusinessIdentifierType", BusinessIdentifierType] },
|
|
11
|
+
{ no: 2, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
12
|
+
]);
|
|
13
|
+
}
|
|
14
|
+
create(value) {
|
|
15
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
16
|
+
message.type = 0;
|
|
17
|
+
message.value = "";
|
|
18
|
+
if (value !== undefined)
|
|
19
|
+
reflectionMergePartial(this, message, value);
|
|
20
|
+
return message;
|
|
21
|
+
}
|
|
22
|
+
internalBinaryRead(reader, length, options, target) {
|
|
23
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
let [fieldNo, wireType] = reader.tag();
|
|
26
|
+
switch (fieldNo) {
|
|
27
|
+
case /* com.merabills.storefront.BusinessIdentifierType type */ 1:
|
|
28
|
+
message.type = reader.int32();
|
|
29
|
+
break;
|
|
30
|
+
case /* string value */ 2:
|
|
31
|
+
message.value = reader.string();
|
|
32
|
+
break;
|
|
33
|
+
default:
|
|
34
|
+
let u = options.readUnknownField;
|
|
35
|
+
if (u === "throw")
|
|
36
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
37
|
+
let d = reader.skip(wireType);
|
|
38
|
+
if (u !== false)
|
|
39
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return message;
|
|
43
|
+
}
|
|
44
|
+
internalBinaryWrite(message, writer, options) {
|
|
45
|
+
/* com.merabills.storefront.BusinessIdentifierType type = 1; */
|
|
46
|
+
if (message.type !== 0)
|
|
47
|
+
writer.tag(1, WireType.Varint).int32(message.type);
|
|
48
|
+
/* string value = 2; */
|
|
49
|
+
if (message.value !== "")
|
|
50
|
+
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
|
51
|
+
let u = options.writeUnknownFields;
|
|
52
|
+
if (u !== false)
|
|
53
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
54
|
+
return writer;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @generated MessageType for protobuf message com.merabills.storefront.BusinessIdentifier
|
|
59
|
+
*/
|
|
60
|
+
export const BusinessIdentifier = new BusinessIdentifier$Type();
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A kind of identifier that a business can carry. Every value below is restricted to India.
|
|
3
|
+
* The Java enum identifies these by string id rather than by number, so the values below are
|
|
4
|
+
* numbered here: map each one to the Java id given in its comment.
|
|
5
|
+
*
|
|
6
|
+
* @generated from protobuf enum com.merabills.storefront.BusinessIdentifierType
|
|
7
|
+
*/
|
|
8
|
+
export declare enum BusinessIdentifierType {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from protobuf enum value: UNSPECIFIED_BUSINESS_IDENTIFIER_TYPE = 0;
|
|
11
|
+
*/
|
|
12
|
+
UNSPECIFIED_BUSINESS_IDENTIFIER_TYPE = 0,
|
|
13
|
+
/**
|
|
14
|
+
* "cin" - Corporate Identity Number
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf enum value: CIN = 1;
|
|
17
|
+
*/
|
|
18
|
+
CIN = 1,
|
|
19
|
+
/**
|
|
20
|
+
* "fssai" - Food Safety and Standards Authority of India licence number
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf enum value: FSSAI = 2;
|
|
23
|
+
*/
|
|
24
|
+
FSSAI = 2,
|
|
25
|
+
/**
|
|
26
|
+
* "gstin" - Goods and Services Tax Identification Number
|
|
27
|
+
*
|
|
28
|
+
* @generated from protobuf enum value: GSTIN = 3;
|
|
29
|
+
*/
|
|
30
|
+
GSTIN = 3,
|
|
31
|
+
/**
|
|
32
|
+
* "pan" - Permanent Account Number
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf enum value: PAN = 4;
|
|
35
|
+
*/
|
|
36
|
+
PAN = 4,
|
|
37
|
+
/**
|
|
38
|
+
* "tan" - Tax Deduction and Collection Account Number
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf enum value: TAN = 5;
|
|
41
|
+
*/
|
|
42
|
+
TAN = 5,
|
|
43
|
+
/**
|
|
44
|
+
* "udyam" - Udyam registration number
|
|
45
|
+
*
|
|
46
|
+
* @generated from protobuf enum value: UDYAM = 6;
|
|
47
|
+
*/
|
|
48
|
+
UDYAM = 6
|
|
49
|
+
}
|