@molopos/shared 2.0.36 → 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 CHANGED
@@ -118,7 +118,11 @@ export declare enum ActivityModelEnum {
118
118
  ApplicationSectionCreate = "APPLICATION_SECTION_CREATE",
119
119
  ApplicationSectionUpdate = "APPLICATION_SECTION_UPDATE",
120
120
  ApplicationSectionDelete = "APPLICATION_SECTION_DELETE",
121
+ QuotePaid = "QUOTE_PAID",
122
+ QuoteSigned = "QUOTE_SIGNED",
121
123
  QuoteConfirmed = "QUOTE_CONFIRMED",
124
+ QuoteCancelled = "QUOTE_CANCELLED",
125
+ QuoteArchived = "QUOTE_ARCHIVED",
122
126
  ProjectCreate = "PROJECT_CREATE",
123
127
  ProjectUpdate = "PROJECT_UPDATE",
124
128
  ProjectDelete = "PROJECT_DELETE",
@@ -261,8 +265,10 @@ export declare enum PricingTypeEnum {
261
265
  * Quote status enum
262
266
  */
263
267
  export declare enum QuoteStatusEnum {
268
+ Paid = "PAID",
264
269
  Signed = "SIGNED",
265
270
  Pending = "PENDING",
271
+ Archived = "ARCHIVED",
266
272
  Confirmed = "CONFIRMED",
267
273
  Cancelled = "CANCELLED"
268
274
  }
package/enum/index.js CHANGED
@@ -127,7 +127,11 @@ var ActivityModelEnum;
127
127
  ActivityModelEnum["ApplicationSectionCreate"] = "APPLICATION_SECTION_CREATE";
128
128
  ActivityModelEnum["ApplicationSectionUpdate"] = "APPLICATION_SECTION_UPDATE";
129
129
  ActivityModelEnum["ApplicationSectionDelete"] = "APPLICATION_SECTION_DELETE";
130
+ ActivityModelEnum["QuotePaid"] = "QUOTE_PAID";
131
+ ActivityModelEnum["QuoteSigned"] = "QUOTE_SIGNED";
130
132
  ActivityModelEnum["QuoteConfirmed"] = "QUOTE_CONFIRMED";
133
+ ActivityModelEnum["QuoteCancelled"] = "QUOTE_CANCELLED";
134
+ ActivityModelEnum["QuoteArchived"] = "QUOTE_ARCHIVED";
131
135
  ActivityModelEnum["ProjectCreate"] = "PROJECT_CREATE";
132
136
  ActivityModelEnum["ProjectUpdate"] = "PROJECT_UPDATE";
133
137
  ActivityModelEnum["ProjectDelete"] = "PROJECT_DELETE";
@@ -285,8 +289,10 @@ var PricingTypeEnum;
285
289
  */
286
290
  var QuoteStatusEnum;
287
291
  (function (QuoteStatusEnum) {
292
+ QuoteStatusEnum["Paid"] = "PAID";
288
293
  QuoteStatusEnum["Signed"] = "SIGNED";
289
294
  QuoteStatusEnum["Pending"] = "PENDING";
295
+ QuoteStatusEnum["Archived"] = "ARCHIVED";
290
296
  QuoteStatusEnum["Confirmed"] = "CONFIRMED";
291
297
  QuoteStatusEnum["Cancelled"] = "CANCELLED";
292
298
  })(QuoteStatusEnum || (exports.QuoteStatusEnum = QuoteStatusEnum = {}));
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@molopos/shared","publishConfig":{"access":"public"},"version":"2.0.36","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.3.0","luxon":"^3.7.2"}}
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"}}
@@ -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",
@@ -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",