@molopos/shared 2.0.35 → 2.0.38
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 +8 -1
- package/enum/index.js +7 -0
- 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,7 +66,8 @@ export declare enum QueryTypeEnum {
|
|
|
66
66
|
Subcategory = "SUBCATEGORY",
|
|
67
67
|
ExpenseItem = "EXPENSEITEM",
|
|
68
68
|
Organization = "ORGANIZATION",
|
|
69
|
-
ApplicationSection = "APPLICATIONSECTION"
|
|
69
|
+
ApplicationSection = "APPLICATIONSECTION",
|
|
70
|
+
CollaborativeFund = "COLLABORATIVEFUND"
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
73
|
* Activity model enum
|
|
@@ -117,7 +118,11 @@ export declare enum ActivityModelEnum {
|
|
|
117
118
|
ApplicationSectionCreate = "APPLICATION_SECTION_CREATE",
|
|
118
119
|
ApplicationSectionUpdate = "APPLICATION_SECTION_UPDATE",
|
|
119
120
|
ApplicationSectionDelete = "APPLICATION_SECTION_DELETE",
|
|
121
|
+
QuotePaid = "QUOTE_PAID",
|
|
122
|
+
QuoteSigned = "QUOTE_SIGNED",
|
|
120
123
|
QuoteConfirmed = "QUOTE_CONFIRMED",
|
|
124
|
+
QuoteCancelled = "QUOTE_CANCELLED",
|
|
125
|
+
QuoteArchived = "QUOTE_ARCHIVED",
|
|
121
126
|
ProjectCreate = "PROJECT_CREATE",
|
|
122
127
|
ProjectUpdate = "PROJECT_UPDATE",
|
|
123
128
|
ProjectDelete = "PROJECT_DELETE",
|
|
@@ -260,8 +265,10 @@ export declare enum PricingTypeEnum {
|
|
|
260
265
|
* Quote status enum
|
|
261
266
|
*/
|
|
262
267
|
export declare enum QuoteStatusEnum {
|
|
268
|
+
Paid = "PAID",
|
|
263
269
|
Signed = "SIGNED",
|
|
264
270
|
Pending = "PENDING",
|
|
271
|
+
Archived = "ARCHIVED",
|
|
265
272
|
Confirmed = "CONFIRMED",
|
|
266
273
|
Cancelled = "CANCELLED"
|
|
267
274
|
}
|
package/enum/index.js
CHANGED
|
@@ -75,6 +75,7 @@ var QueryTypeEnum;
|
|
|
75
75
|
QueryTypeEnum["ExpenseItem"] = "EXPENSEITEM";
|
|
76
76
|
QueryTypeEnum["Organization"] = "ORGANIZATION";
|
|
77
77
|
QueryTypeEnum["ApplicationSection"] = "APPLICATIONSECTION";
|
|
78
|
+
QueryTypeEnum["CollaborativeFund"] = "COLLABORATIVEFUND";
|
|
78
79
|
})(QueryTypeEnum || (exports.QueryTypeEnum = QueryTypeEnum = {}));
|
|
79
80
|
/**
|
|
80
81
|
* Activity model enum
|
|
@@ -126,7 +127,11 @@ var ActivityModelEnum;
|
|
|
126
127
|
ActivityModelEnum["ApplicationSectionCreate"] = "APPLICATION_SECTION_CREATE";
|
|
127
128
|
ActivityModelEnum["ApplicationSectionUpdate"] = "APPLICATION_SECTION_UPDATE";
|
|
128
129
|
ActivityModelEnum["ApplicationSectionDelete"] = "APPLICATION_SECTION_DELETE";
|
|
130
|
+
ActivityModelEnum["QuotePaid"] = "QUOTE_PAID";
|
|
131
|
+
ActivityModelEnum["QuoteSigned"] = "QUOTE_SIGNED";
|
|
129
132
|
ActivityModelEnum["QuoteConfirmed"] = "QUOTE_CONFIRMED";
|
|
133
|
+
ActivityModelEnum["QuoteCancelled"] = "QUOTE_CANCELLED";
|
|
134
|
+
ActivityModelEnum["QuoteArchived"] = "QUOTE_ARCHIVED";
|
|
130
135
|
ActivityModelEnum["ProjectCreate"] = "PROJECT_CREATE";
|
|
131
136
|
ActivityModelEnum["ProjectUpdate"] = "PROJECT_UPDATE";
|
|
132
137
|
ActivityModelEnum["ProjectDelete"] = "PROJECT_DELETE";
|
|
@@ -284,8 +289,10 @@ var PricingTypeEnum;
|
|
|
284
289
|
*/
|
|
285
290
|
var QuoteStatusEnum;
|
|
286
291
|
(function (QuoteStatusEnum) {
|
|
292
|
+
QuoteStatusEnum["Paid"] = "PAID";
|
|
287
293
|
QuoteStatusEnum["Signed"] = "SIGNED";
|
|
288
294
|
QuoteStatusEnum["Pending"] = "PENDING";
|
|
295
|
+
QuoteStatusEnum["Archived"] = "ARCHIVED";
|
|
289
296
|
QuoteStatusEnum["Confirmed"] = "CONFIRMED";
|
|
290
297
|
QuoteStatusEnum["Cancelled"] = "CANCELLED";
|
|
291
298
|
})(QuoteStatusEnum || (exports.QuoteStatusEnum = QuoteStatusEnum = {}));
|
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.38","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",
|