@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,59 @@
|
|
|
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
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6
|
+
class WorkingHoursRange$Type extends MessageType {
|
|
7
|
+
constructor() {
|
|
8
|
+
super("com.merabills.storefront.WorkingHoursRange", [
|
|
9
|
+
{ no: 1, name: "openMinute", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
10
|
+
{ no: 2, name: "closeMinute", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
11
|
+
]);
|
|
12
|
+
}
|
|
13
|
+
create(value) {
|
|
14
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
15
|
+
message.openMinute = 0;
|
|
16
|
+
message.closeMinute = 0;
|
|
17
|
+
if (value !== undefined)
|
|
18
|
+
reflectionMergePartial(this, message, value);
|
|
19
|
+
return message;
|
|
20
|
+
}
|
|
21
|
+
internalBinaryRead(reader, length, options, target) {
|
|
22
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
23
|
+
while (reader.pos < end) {
|
|
24
|
+
let [fieldNo, wireType] = reader.tag();
|
|
25
|
+
switch (fieldNo) {
|
|
26
|
+
case /* int32 openMinute */ 1:
|
|
27
|
+
message.openMinute = reader.int32();
|
|
28
|
+
break;
|
|
29
|
+
case /* int32 closeMinute */ 2:
|
|
30
|
+
message.closeMinute = reader.int32();
|
|
31
|
+
break;
|
|
32
|
+
default:
|
|
33
|
+
let u = options.readUnknownField;
|
|
34
|
+
if (u === "throw")
|
|
35
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
36
|
+
let d = reader.skip(wireType);
|
|
37
|
+
if (u !== false)
|
|
38
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return message;
|
|
42
|
+
}
|
|
43
|
+
internalBinaryWrite(message, writer, options) {
|
|
44
|
+
/* int32 openMinute = 1; */
|
|
45
|
+
if (message.openMinute !== 0)
|
|
46
|
+
writer.tag(1, WireType.Varint).int32(message.openMinute);
|
|
47
|
+
/* int32 closeMinute = 2; */
|
|
48
|
+
if (message.closeMinute !== 0)
|
|
49
|
+
writer.tag(2, WireType.Varint).int32(message.closeMinute);
|
|
50
|
+
let u = options.writeUnknownFields;
|
|
51
|
+
if (u !== false)
|
|
52
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
53
|
+
return writer;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @generated MessageType for protobuf message com.merabills.storefront.WorkingHoursRange
|
|
58
|
+
*/
|
|
59
|
+
export const WorkingHoursRange = new WorkingHoursRange$Type();
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { default as Model } from "./Model";
|
|
2
|
+
export { default as Database } from "./Database";
|
|
3
|
+
export type { Container, StoredBlob } from "./Database";
|
|
4
|
+
export { default as Service } from "./Service";
|
|
5
|
+
export * as ContainerNames from "./ContainerNames";
|
|
6
|
+
export { buildAuthTokensBytes } from "./ProtoMap";
|
|
7
|
+
export { default as ServiceProxy } from "./ServiceProxy";
|
|
8
|
+
export type { FetchFunction } from "./ServiceProxy";
|
|
9
|
+
export { default as Routes } from "./Routes";
|
|
10
|
+
export { default as LiveData } from "./LiveData";
|
|
11
|
+
export { StateHolder } from "./LiveData";
|
|
12
|
+
export type { Observable, Observer, UpdatableLiveData } from "./LiveData";
|
|
13
|
+
export { default as Business } from "./Business";
|
|
14
|
+
export type { UpdatableBusiness } from "./Business";
|
|
15
|
+
export { default as CartEditor, CartLine } from "./CartEditor";
|
|
16
|
+
export { default as Catalog } from "./Catalog";
|
|
17
|
+
export { default as GeneralSettings } from "./GeneralSettings";
|
|
18
|
+
export { default as Order } from "./Order";
|
|
19
|
+
export { default as Package } from "./Package";
|
|
20
|
+
export { default as Photo } from "./Photo";
|
|
21
|
+
export { default as Price } from "./Price";
|
|
22
|
+
export { default as PriceList } from "./PriceList";
|
|
23
|
+
export { default as Product } from "./Product";
|
|
24
|
+
export { default as ProductCategory } from "./ProductCategory";
|
|
25
|
+
export type { UpdatableProductCategory } from "./ProductCategory";
|
|
26
|
+
export { default as Profile } from "./Profile";
|
|
27
|
+
export { default as BusinessLink } from "./BusinessLink";
|
|
28
|
+
export { default as BusinessProfile } from "./BusinessProfile";
|
|
29
|
+
export { default as UserProfile } from "./UserProfile";
|
|
30
|
+
export { default as Entity, EntityHeader, UpdatableEntity } from "./Entity";
|
|
31
|
+
export { default as Item } from "./Item";
|
|
32
|
+
export { default as Message } from "./Message";
|
|
33
|
+
export { default as Address, AddressList } from "./Address";
|
|
34
|
+
export { default as AttachmentBaseUrl } from "./AttachmentBaseUrl";
|
|
35
|
+
export { default as BusinessIdentifier } from "./BusinessIdentifier";
|
|
36
|
+
export { default as LatLong } from "./LatLong";
|
|
37
|
+
export { Dimensions, Weight } from "./Measures";
|
|
38
|
+
export { default as PackageIdentifier } from "./PackageIdentifier";
|
|
39
|
+
export { default as PaymentMethodDetail } from "./PaymentMethodDetail";
|
|
40
|
+
export { default as ShoppingList, ShoppingListItem } from "./ShoppingList";
|
|
41
|
+
export { default as Tax } from "./Tax";
|
|
42
|
+
export { default as WorkingDays, WorkingHours, WorkingHoursRange } from "./WorkingDays";
|
|
43
|
+
export * from "./Enums";
|
|
44
|
+
export { Constants, MERABILLS_ONLINE_PRICE_LIST_ID, buildPriceListId } from "./Constants";
|
|
45
|
+
export { default as Ids } from "./Ids";
|
|
46
|
+
export { IllegalOperationException, InvalidArgumentException } from "./Exceptions";
|
|
47
|
+
export { BadRequestException, ConflictException, InternalServerException, MethodNotAllowedException, NetworkConnectionException, NotFoundException, ServiceException, ServiceUnavailableException, UnauthorizedException, UpgradeRequiredException, } from "./ServiceExceptions";
|
|
48
|
+
export { default as MockDatabase, MockContainer } from "./MockDatabase";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// The public surface of this library. Deliberately excludes Attachment (UIs get Photo instead), the sync layer's internal cursors,
|
|
2
|
+
// the auth tokens (except BusinessLink.linkToken, which the protocol hands to a client), ProtoMap (the wire boundary, except buildAuthTokensBytes),
|
|
3
|
+
// and the scaled-value conversions of Constants.ts (amounts, quantities and tax rates are already unscaled on every getter; ProtoMap is the only caller that needs to convert one).
|
|
4
|
+
export { default as Model } from "./Model";
|
|
5
|
+
export * as ContainerNames from "./ContainerNames";
|
|
6
|
+
export { buildAuthTokensBytes } from "./ProtoMap";
|
|
7
|
+
// The Service implementation that reaches a real server, and the routes it reaches it by. A caller
|
|
8
|
+
// that is happy with plain https needs only the base url; one that is not implements Service itself.
|
|
9
|
+
export { default as ServiceProxy } from "./ServiceProxy";
|
|
10
|
+
export { default as Routes } from "./Routes";
|
|
11
|
+
// Observation
|
|
12
|
+
export { default as LiveData } from "./LiveData";
|
|
13
|
+
export { StateHolder } from "./LiveData";
|
|
14
|
+
// The object model of one business
|
|
15
|
+
export { default as Business } from "./Business";
|
|
16
|
+
export { default as CartEditor, CartLine } from "./CartEditor";
|
|
17
|
+
export { default as Catalog } from "./Catalog";
|
|
18
|
+
export { default as GeneralSettings } from "./GeneralSettings";
|
|
19
|
+
export { default as Order } from "./Order";
|
|
20
|
+
export { default as Package } from "./Package";
|
|
21
|
+
export { default as Photo } from "./Photo";
|
|
22
|
+
export { default as Price } from "./Price";
|
|
23
|
+
export { default as PriceList } from "./PriceList";
|
|
24
|
+
export { default as Product } from "./Product";
|
|
25
|
+
export { default as ProductCategory } from "./ProductCategory";
|
|
26
|
+
// The object model of one profile
|
|
27
|
+
export { default as Profile } from "./Profile";
|
|
28
|
+
export { default as BusinessLink } from "./BusinessLink";
|
|
29
|
+
export { default as BusinessProfile } from "./BusinessProfile";
|
|
30
|
+
export { default as UserProfile } from "./UserProfile";
|
|
31
|
+
// Entity bases, which a UI reads through rather than instantiates
|
|
32
|
+
export { default as Entity, EntityHeader, UpdatableEntity } from "./Entity";
|
|
33
|
+
export { default as Item } from "./Item";
|
|
34
|
+
export { default as Message } from "./Message";
|
|
35
|
+
// Values
|
|
36
|
+
export { default as Address, AddressList } from "./Address";
|
|
37
|
+
export { default as AttachmentBaseUrl } from "./AttachmentBaseUrl";
|
|
38
|
+
export { default as BusinessIdentifier } from "./BusinessIdentifier";
|
|
39
|
+
export { default as LatLong } from "./LatLong";
|
|
40
|
+
export { Dimensions, Weight } from "./Measures";
|
|
41
|
+
export { default as PackageIdentifier } from "./PackageIdentifier";
|
|
42
|
+
export { default as PaymentMethodDetail } from "./PaymentMethodDetail";
|
|
43
|
+
export { default as ShoppingList, ShoppingListItem } from "./ShoppingList";
|
|
44
|
+
export { default as Tax } from "./Tax";
|
|
45
|
+
export { default as WorkingDays, WorkingHours, WorkingHoursRange } from "./WorkingDays";
|
|
46
|
+
// The enums of the protocol, the limits it obeys, and how an id is read. The price list a
|
|
47
|
+
// storefront sells from is on the surface because a UI naming it on a cart it is building needs
|
|
48
|
+
// it, and Catalog.priceList is null until the catalog has arrived.
|
|
49
|
+
export * from "./Enums";
|
|
50
|
+
export { Constants, MERABILLS_ONLINE_PRICE_LIST_ID, buildPriceListId } from "./Constants";
|
|
51
|
+
export { default as Ids } from "./Ids";
|
|
52
|
+
// Failures. The two in Exceptions.ts are programming errors; the rest are what a call fails with
|
|
53
|
+
// and are meant to be caught - ServiceException for anything the server refused, and
|
|
54
|
+
// NetworkConnectionException for a call that never got an answer.
|
|
55
|
+
export { IllegalOperationException, InvalidArgumentException } from "./Exceptions";
|
|
56
|
+
export { BadRequestException, ConflictException, InternalServerException, MethodNotAllowedException, NetworkConnectionException, NotFoundException, ServiceException, ServiceUnavailableException, UnauthorizedException, UpgradeRequiredException, } from "./ServiceExceptions";
|
|
57
|
+
// The mock database: a Database over a Map, so a caller can pair it with any Service. MockService
|
|
58
|
+
// and MockData (a Service and its data, answering out of memory) live in test/ only - see
|
|
59
|
+
// test/TestMockService.ts and test/TestMockData.ts.
|
|
60
|
+
export { default as MockDatabase, MockContainer } from "./MockDatabase";
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@peabody-soft/mbs-model-ts",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "MeraBills storefront client-side model (TypeScript)",
|
|
5
|
+
"author": "Peabody Soft",
|
|
6
|
+
"license": "AGPL-3.0-or-later",
|
|
7
|
+
"homepage": "https://merabills.com",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"MeraBills",
|
|
10
|
+
"Peabody Soft",
|
|
11
|
+
"Model",
|
|
12
|
+
"Storefront",
|
|
13
|
+
"Mock",
|
|
14
|
+
"TypeScript"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./dist/*": {
|
|
27
|
+
"types": "./dist/*.d.ts",
|
|
28
|
+
"default": "./dist/*.js"
|
|
29
|
+
},
|
|
30
|
+
"./generated/*": {
|
|
31
|
+
"types": "./dist/generated/*.d.ts",
|
|
32
|
+
"default": "./dist/generated/*.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist/**",
|
|
37
|
+
"!dist/**/*.map",
|
|
38
|
+
"!USAGE.md"
|
|
39
|
+
],
|
|
40
|
+
"scripts": {
|
|
41
|
+
"generate": "node generate.mjs",
|
|
42
|
+
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
43
|
+
"build": "npm run generate && npm run clean && tsc",
|
|
44
|
+
"typecheck": "npm run generate && tsc --noEmit",
|
|
45
|
+
"prepack": "npm run build"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@protobuf-ts/plugin": "^2.11.1",
|
|
49
|
+
"typescript": "^7.0.2"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@peabody-soft/mbs-protos": "^1.7.0",
|
|
53
|
+
"@protobuf-ts/runtime": "^2.11.1"
|
|
54
|
+
}
|
|
55
|
+
}
|