@molopos/shared 2.0.36 → 2.0.39
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/enum/index.d.ts +20 -2
- package/enum/index.js +21 -2
- package/package.json +1 -1
- package/url-endpoint/index.d.ts +0 -6
- package/url-endpoint/index.js +0 -6
package/enum/index.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export declare enum QueryTypeEnum {
|
|
|
66
66
|
Subcategory = "SUBCATEGORY",
|
|
67
67
|
ExpenseItem = "EXPENSEITEM",
|
|
68
68
|
Organization = "ORGANIZATION",
|
|
69
|
+
InvoiceBalance = "INVOICEBALANCE",
|
|
69
70
|
ApplicationSection = "APPLICATIONSECTION",
|
|
70
71
|
CollaborativeFund = "COLLABORATIVEFUND"
|
|
71
72
|
}
|
|
@@ -118,7 +119,11 @@ export declare enum ActivityModelEnum {
|
|
|
118
119
|
ApplicationSectionCreate = "APPLICATION_SECTION_CREATE",
|
|
119
120
|
ApplicationSectionUpdate = "APPLICATION_SECTION_UPDATE",
|
|
120
121
|
ApplicationSectionDelete = "APPLICATION_SECTION_DELETE",
|
|
122
|
+
QuotePaid = "QUOTE_PAID",
|
|
123
|
+
QuoteSigned = "QUOTE_SIGNED",
|
|
121
124
|
QuoteConfirmed = "QUOTE_CONFIRMED",
|
|
125
|
+
QuoteCancelled = "QUOTE_CANCELLED",
|
|
126
|
+
QuoteArchived = "QUOTE_ARCHIVED",
|
|
122
127
|
ProjectCreate = "PROJECT_CREATE",
|
|
123
128
|
ProjectUpdate = "PROJECT_UPDATE",
|
|
124
129
|
ProjectDelete = "PROJECT_DELETE",
|
|
@@ -144,10 +149,10 @@ export declare enum TransactionDirectionEnum {
|
|
|
144
149
|
* Transaction model enum
|
|
145
150
|
*/
|
|
146
151
|
export declare enum TransactionModelEnum {
|
|
152
|
+
Withdraw = "WITHDRAW",
|
|
147
153
|
Product = "PRODUCT",
|
|
148
154
|
StoreShop = "STORESHOP",
|
|
149
|
-
Subscription = "SUBSCRIPTION"
|
|
150
|
-
Withdraw = "WITHDRAW"
|
|
155
|
+
Subscription = "SUBSCRIPTION"
|
|
151
156
|
}
|
|
152
157
|
/**
|
|
153
158
|
* Boolean string enum
|
|
@@ -261,8 +266,10 @@ export declare enum PricingTypeEnum {
|
|
|
261
266
|
* Quote status enum
|
|
262
267
|
*/
|
|
263
268
|
export declare enum QuoteStatusEnum {
|
|
269
|
+
Paid = "PAID",
|
|
264
270
|
Signed = "SIGNED",
|
|
265
271
|
Pending = "PENDING",
|
|
272
|
+
Archived = "ARCHIVED",
|
|
266
273
|
Confirmed = "CONFIRMED",
|
|
267
274
|
Cancelled = "CANCELLED"
|
|
268
275
|
}
|
|
@@ -287,3 +294,14 @@ export declare enum ExpenseModuleEnum {
|
|
|
287
294
|
Expense = "EXPENSE",
|
|
288
295
|
CollaborativeFund = "COLLABORATIVEFUND"
|
|
289
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* Additional module enum
|
|
299
|
+
*/
|
|
300
|
+
export declare enum AdditionalModuleEnum {
|
|
301
|
+
Order = "ORDER",
|
|
302
|
+
Quote = "QUOTE",
|
|
303
|
+
Invoice = "INVOICE",
|
|
304
|
+
QuoteItem = "QUOTEITEM",
|
|
305
|
+
QuoteOption = "QUOTEOPTION",
|
|
306
|
+
InvoiceBalance = "INVOICEBALANCE"
|
|
307
|
+
}
|
package/enum/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExpenseModuleEnum = exports.SectionStatusEnum = exports.StatusEnum = exports.QuoteStatusEnum = exports.PricingTypeEnum = exports.UserStatusEnum = exports.ApplicationSectionModuleEnum = exports.PagesProviderEnum = exports.PrivatePublicEnum = exports.StatusQuoteItemEnum = exports.ContributorRoleEnum = exports.QuoteSignedViewEnum = exports.CurrencyEnum = exports.ExportExtEnum = exports.SortOrderEnum = exports.BooleanStringEnum = exports.TransactionModelEnum = exports.TransactionDirectionEnum = exports.ActivityModelEnum = exports.QueryTypeEnum = exports.ProductTypeEnum = exports.PaymentMethodEnum = exports.DiscountTypeEnum = exports.CustomerTypeEnum = void 0;
|
|
3
|
+
exports.AdditionalModuleEnum = exports.ExpenseModuleEnum = exports.SectionStatusEnum = exports.StatusEnum = exports.QuoteStatusEnum = exports.PricingTypeEnum = exports.UserStatusEnum = exports.ApplicationSectionModuleEnum = exports.PagesProviderEnum = exports.PrivatePublicEnum = exports.StatusQuoteItemEnum = exports.ContributorRoleEnum = exports.QuoteSignedViewEnum = exports.CurrencyEnum = exports.ExportExtEnum = exports.SortOrderEnum = exports.BooleanStringEnum = exports.TransactionModelEnum = exports.TransactionDirectionEnum = exports.ActivityModelEnum = exports.QueryTypeEnum = exports.ProductTypeEnum = exports.PaymentMethodEnum = exports.DiscountTypeEnum = exports.CustomerTypeEnum = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Customer type enum
|
|
6
6
|
*/
|
|
@@ -74,6 +74,7 @@ var QueryTypeEnum;
|
|
|
74
74
|
QueryTypeEnum["Subcategory"] = "SUBCATEGORY";
|
|
75
75
|
QueryTypeEnum["ExpenseItem"] = "EXPENSEITEM";
|
|
76
76
|
QueryTypeEnum["Organization"] = "ORGANIZATION";
|
|
77
|
+
QueryTypeEnum["InvoiceBalance"] = "INVOICEBALANCE";
|
|
77
78
|
QueryTypeEnum["ApplicationSection"] = "APPLICATIONSECTION";
|
|
78
79
|
QueryTypeEnum["CollaborativeFund"] = "COLLABORATIVEFUND";
|
|
79
80
|
})(QueryTypeEnum || (exports.QueryTypeEnum = QueryTypeEnum = {}));
|
|
@@ -127,7 +128,11 @@ var ActivityModelEnum;
|
|
|
127
128
|
ActivityModelEnum["ApplicationSectionCreate"] = "APPLICATION_SECTION_CREATE";
|
|
128
129
|
ActivityModelEnum["ApplicationSectionUpdate"] = "APPLICATION_SECTION_UPDATE";
|
|
129
130
|
ActivityModelEnum["ApplicationSectionDelete"] = "APPLICATION_SECTION_DELETE";
|
|
131
|
+
ActivityModelEnum["QuotePaid"] = "QUOTE_PAID";
|
|
132
|
+
ActivityModelEnum["QuoteSigned"] = "QUOTE_SIGNED";
|
|
130
133
|
ActivityModelEnum["QuoteConfirmed"] = "QUOTE_CONFIRMED";
|
|
134
|
+
ActivityModelEnum["QuoteCancelled"] = "QUOTE_CANCELLED";
|
|
135
|
+
ActivityModelEnum["QuoteArchived"] = "QUOTE_ARCHIVED";
|
|
131
136
|
ActivityModelEnum["ProjectCreate"] = "PROJECT_CREATE";
|
|
132
137
|
ActivityModelEnum["ProjectUpdate"] = "PROJECT_UPDATE";
|
|
133
138
|
ActivityModelEnum["ProjectDelete"] = "PROJECT_DELETE";
|
|
@@ -155,10 +160,10 @@ var TransactionDirectionEnum;
|
|
|
155
160
|
*/
|
|
156
161
|
var TransactionModelEnum;
|
|
157
162
|
(function (TransactionModelEnum) {
|
|
163
|
+
TransactionModelEnum["Withdraw"] = "WITHDRAW";
|
|
158
164
|
TransactionModelEnum["Product"] = "PRODUCT";
|
|
159
165
|
TransactionModelEnum["StoreShop"] = "STORESHOP";
|
|
160
166
|
TransactionModelEnum["Subscription"] = "SUBSCRIPTION";
|
|
161
|
-
TransactionModelEnum["Withdraw"] = "WITHDRAW";
|
|
162
167
|
})(TransactionModelEnum || (exports.TransactionModelEnum = TransactionModelEnum = {}));
|
|
163
168
|
/**
|
|
164
169
|
* Boolean string enum
|
|
@@ -285,8 +290,10 @@ var PricingTypeEnum;
|
|
|
285
290
|
*/
|
|
286
291
|
var QuoteStatusEnum;
|
|
287
292
|
(function (QuoteStatusEnum) {
|
|
293
|
+
QuoteStatusEnum["Paid"] = "PAID";
|
|
288
294
|
QuoteStatusEnum["Signed"] = "SIGNED";
|
|
289
295
|
QuoteStatusEnum["Pending"] = "PENDING";
|
|
296
|
+
QuoteStatusEnum["Archived"] = "ARCHIVED";
|
|
290
297
|
QuoteStatusEnum["Confirmed"] = "CONFIRMED";
|
|
291
298
|
QuoteStatusEnum["Cancelled"] = "CANCELLED";
|
|
292
299
|
})(QuoteStatusEnum || (exports.QuoteStatusEnum = QuoteStatusEnum = {}));
|
|
@@ -314,3 +321,15 @@ var ExpenseModuleEnum;
|
|
|
314
321
|
ExpenseModuleEnum["Expense"] = "EXPENSE";
|
|
315
322
|
ExpenseModuleEnum["CollaborativeFund"] = "COLLABORATIVEFUND";
|
|
316
323
|
})(ExpenseModuleEnum || (exports.ExpenseModuleEnum = ExpenseModuleEnum = {}));
|
|
324
|
+
/**
|
|
325
|
+
* Additional module enum
|
|
326
|
+
*/
|
|
327
|
+
var AdditionalModuleEnum;
|
|
328
|
+
(function (AdditionalModuleEnum) {
|
|
329
|
+
AdditionalModuleEnum["Order"] = "ORDER";
|
|
330
|
+
AdditionalModuleEnum["Quote"] = "QUOTE";
|
|
331
|
+
AdditionalModuleEnum["Invoice"] = "INVOICE";
|
|
332
|
+
AdditionalModuleEnum["QuoteItem"] = "QUOTEITEM";
|
|
333
|
+
AdditionalModuleEnum["QuoteOption"] = "QUOTEOPTION";
|
|
334
|
+
AdditionalModuleEnum["InvoiceBalance"] = "INVOICEBALANCE";
|
|
335
|
+
})(AdditionalModuleEnum || (exports.AdditionalModuleEnum = AdditionalModuleEnum = {}));
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@molopos/shared","publishConfig":{"access":"public"},"version":"2.0.
|
|
1
|
+
{"name":"@molopos/shared","publishConfig":{"access":"public"},"version":"2.0.39","description":"Shared between backend and frontend repos","license":"ISC","repository":{"type":"git","url":"https://github.com/unicubate/molopos-shared.git"},"dependencies":{"class-transformer":"^0.5.1","date-fns":"^4.4.0","luxon":"^3.7.2"}}
|
package/url-endpoint/index.d.ts
CHANGED
|
@@ -3,12 +3,6 @@ export type Url = string | UrlObject;
|
|
|
3
3
|
export type EndpointLike<T extends string> = `/${T}`;
|
|
4
4
|
/**
|
|
5
5
|
* Create a URL with query parameters
|
|
6
|
-
* @param baseUrl - The base URL
|
|
7
|
-
* @param endpoint - The endpoint
|
|
8
|
-
* @param params - The URL parameters
|
|
9
|
-
* @param query - The query parameters
|
|
10
|
-
* @returns
|
|
11
|
-
*
|
|
12
6
|
* @example
|
|
13
7
|
* const url = URLEndpoint({
|
|
14
8
|
* baseUrl: "https://api.example.com",
|
package/url-endpoint/index.js
CHANGED
|
@@ -3,12 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.URLEndpoint = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Create a URL with query parameters
|
|
6
|
-
* @param baseUrl - The base URL
|
|
7
|
-
* @param endpoint - The endpoint
|
|
8
|
-
* @param params - The URL parameters
|
|
9
|
-
* @param query - The query parameters
|
|
10
|
-
* @returns
|
|
11
|
-
*
|
|
12
6
|
* @example
|
|
13
7
|
* const url = URLEndpoint({
|
|
14
8
|
* baseUrl: "https://api.example.com",
|