@react-pakistan/util-functions 1.24.64 → 1.24.66

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.
Files changed (110) hide show
  1. package/README.md +6 -3
  2. package/api/stellar-solutions/app-user/index.d.ts +63 -14
  3. package/api/stellar-solutions/app-user/index.js +106 -52
  4. package/api/stellar-solutions/bank/index.d.ts +65 -16
  5. package/api/stellar-solutions/bank/index.js +115 -65
  6. package/api/stellar-solutions/branch/index.d.ts +64 -15
  7. package/api/stellar-solutions/branch/index.js +119 -65
  8. package/api/stellar-solutions/company/index.d.ts +58 -24
  9. package/api/stellar-solutions/company/index.js +106 -78
  10. package/api/stellar-solutions/company-report/index.d.ts +12 -5
  11. package/api/stellar-solutions/company-report/index.js +12 -7
  12. package/api/stellar-solutions/contact/index.d.ts +54 -20
  13. package/api/stellar-solutions/contact/index.js +109 -88
  14. package/api/stellar-solutions/currency/index.d.ts +63 -14
  15. package/api/stellar-solutions/currency/index.js +113 -61
  16. package/api/stellar-solutions/customer/index.d.ts +70 -28
  17. package/api/stellar-solutions/customer/index.js +131 -101
  18. package/api/stellar-solutions/expense/index.d.ts +58 -22
  19. package/api/stellar-solutions/expense/index.js +128 -92
  20. package/api/stellar-solutions/expense-category/index.d.ts +58 -22
  21. package/api/stellar-solutions/expense-category/index.js +125 -86
  22. package/api/stellar-solutions/lead/index.js +0 -1
  23. package/api/stellar-solutions/menu-order/index.d.ts +29 -7
  24. package/api/stellar-solutions/menu-order/index.js +74 -27
  25. package/api/stellar-solutions/payment/index.d.ts +62 -27
  26. package/api/stellar-solutions/payment/index.js +144 -123
  27. package/api/stellar-solutions/payment-mode/index.d.ts +44 -12
  28. package/api/stellar-solutions/payment-mode/index.js +115 -49
  29. package/api/stellar-solutions/preference/index.d.ts +14 -3
  30. package/api/stellar-solutions/preference/index.js +44 -14
  31. package/api/stellar-solutions/product/index.d.ts +46 -31
  32. package/api/stellar-solutions/product/index.js +142 -113
  33. package/api/stellar-solutions/product-category/index.d.ts +44 -27
  34. package/api/stellar-solutions/product-category/index.js +123 -87
  35. package/api/stellar-solutions/profile/index.d.ts +48 -17
  36. package/api/stellar-solutions/profile/index.js +124 -65
  37. package/api/stellar-solutions/quote-invoice/index.d.ts +67 -8
  38. package/api/stellar-solutions/quote-invoice/index.js +123 -57
  39. package/api/stellar-solutions/quote-invoice-report/index.d.ts +12 -5
  40. package/api/stellar-solutions/quote-invoice-report/index.js +10 -5
  41. package/api/stellar-solutions/tax/index.d.ts +46 -14
  42. package/api/stellar-solutions/tax/index.js +135 -63
  43. package/api/stellar-solutions/type.d.ts +292 -177
  44. package/api/stellar-solutions/type.js +93 -1
  45. package/constants/countries-timezones.js +0 -1
  46. package/constants/currencies.js +0 -1
  47. package/general/basic-get.js +22 -21
  48. package/general/basic-post.js +19 -18
  49. package/general/calculate-pages.js +3 -1
  50. package/general/check-even-odd-length.js +3 -2
  51. package/general/delete-image-from-private-supabase.js +0 -1
  52. package/general/delete-image-from-public-supabase.js +0 -1
  53. package/general/dynamic-page-limit.js +3 -2
  54. package/general/enum-to-text.js +7 -4
  55. package/general/fetch-data.js +0 -1
  56. package/general/fetch-supabase-image.js +0 -1
  57. package/general/fetch-supabase-private-assets.js +15 -14
  58. package/general/format-date.js +8 -8
  59. package/general/format-number.js +3 -2
  60. package/general/format-time.js +3 -2
  61. package/general/full-year-range.js +2 -2
  62. package/general/generate-blog-schema.d.ts +3 -3
  63. package/general/generate-blog-schema.js +20 -13
  64. package/general/generate-breadcrumb-schema.d.ts +4 -4
  65. package/general/generate-breadcrumb-schema.js +9 -10
  66. package/general/generate-faq-schema.d.ts +5 -5
  67. package/general/generate-faq-schema.js +18 -11
  68. package/general/generate-grid.js +0 -1
  69. package/general/generate-organization-schema.d.ts +3 -3
  70. package/general/generate-organization-schema.js +25 -18
  71. package/general/get-available-page-limit.js +2 -2
  72. package/general/get-calendar-dates.js +14 -3
  73. package/general/get-full-name.d.ts +1 -1
  74. package/general/get-number-of-days-in-month.d.ts +1 -1
  75. package/general/get-pathname.js +4 -1
  76. package/general/is-odd.js +1 -1
  77. package/general/is-previous-button-disabled.js +3 -1
  78. package/general/parse-frontmatter.js +0 -1
  79. package/general/remove-data-image-prefix.js +3 -2
  80. package/general/repeat-times.js +0 -1
  81. package/general/resolve-current-date.js +1 -2
  82. package/general/resolve-grid.js +3 -2
  83. package/general/slugify.js +11 -9
  84. package/general/text-to-enum.js +6 -1
  85. package/general/text-to-sentence-case.js +3 -1
  86. package/general/time-out.js +5 -4
  87. package/general/truncate-text.js +3 -1
  88. package/general/upload-blob-to-private-supabase.js +2 -2
  89. package/general/upload-blob-to-public-supabase.js +2 -2
  90. package/general/upload-image-to-private-supabase.js +2 -2
  91. package/general/upload-image-to-public-supabase.js +2 -2
  92. package/general/validate-email.js +1 -1
  93. package/hooks/use-fetch.js +11 -12
  94. package/hooks/use-module-entity.js +5 -6
  95. package/hooks/use-sticky.js +0 -1
  96. package/hooks/with-seo.d.ts +1 -1
  97. package/hooks/with-seo.js +3 -4
  98. package/local-storage/get-storage-value.js +0 -1
  99. package/package.json +22 -13
  100. package/setupTests.js +1 -2
  101. package/storybook/generate-sitemap.js +0 -1
  102. package/storybook/preview.js +1 -4
  103. package/storybook/react-design-story-script.js +0 -2
  104. package/storybook/react-emoji-collection.js +8 -6
  105. package/storybook/react-emoji-story-script.js +0 -2
  106. package/storybook/react-icon-collection.js +4 -3
  107. package/storybook/react-icon-story-script.js +0 -2
  108. package/storybook/react-logo-collection.js +4 -3
  109. package/storybook/react-logo-story-script.js +0 -2
  110. package/storybook/responsive-component.js +14 -7
@@ -1,244 +1,359 @@
1
- export interface AppUserBE {
1
+ /**
2
+ * Gender options for user profiles
3
+ */
4
+ export declare enum GENDER {
5
+ MALE = "MALE",
6
+ FEMALE = "FEMALE"
7
+ }
8
+ /**
9
+ * Quote and Invoice category types
10
+ */
11
+ export declare enum QUOTE_INVOICE_CATEGORY {
12
+ QUOTE = "QUOTE",
13
+ INVOICE = "INVOICE"
14
+ }
15
+ /**
16
+ * Discount unit types (fixed amount or percentage)
17
+ */
18
+ export declare enum DISCOUNT_UNIT {
19
+ FIXED_VALUE = "FIXED_VALUE",
20
+ PERCENTAGE_VALUE = "PERCENTAGE_VALUE"
21
+ }
22
+ /**
23
+ * Invoice payment status
24
+ */
25
+ export declare enum INVOICE_STATUS {
26
+ UNPAID = "UNPAID",
27
+ PAID = "PAID"
28
+ }
29
+ /**
30
+ * Quote lifecycle status
31
+ */
32
+ export declare enum QUOTE_STATUS {
33
+ DRAFT = "DRAFT",
34
+ PENDING = "PENDING",
35
+ SENT = "SENT",
36
+ ACCEPTED = "ACCEPTED",
37
+ DECLINED = "DECLINED"
38
+ }
39
+ /**
40
+ * Payment type (full or partial)
41
+ */
42
+ export declare enum PAYMENT_TYPE {
43
+ FULL_AMOUNT = "FULL_AMOUNT",
44
+ PARTIAL_AMOUNT = "PARTIAL_AMOUNT"
45
+ }
46
+ /**
47
+ * Lead source options
48
+ */
49
+ export declare enum LEAD_SOURCE {
50
+ ADVERTISING = "ADVERTISING",
51
+ CUSTOMER_REFERRAL = "CUSTOMER_REFERRAL",
52
+ FRIEND = "FRIEND",
53
+ LINKEDIN = "LINKEDIN",
54
+ OTHER = "OTHER",
55
+ PROFESSIONAL_NETWORK = "PROFESSIONAL_NETWORK",
56
+ SALES = "SALES",
57
+ SOCIAL_MEDIA = "SOCIAL_MEDIA",
58
+ WEBSITE = "WEBSITE"
59
+ }
60
+ /**
61
+ * Lead status options
62
+ */
63
+ export declare enum LEAD_STATUS {
64
+ ASSIGNED = "ASSIGNED",
65
+ CANCELLED = "CANCELLED",
66
+ DRAFT = "DRAFT",
67
+ IN_NEGOTIATION = "IN_NEGOTIATION",
68
+ LOOSE = "LOOSE",
69
+ NEW = "NEW",
70
+ ON_HOLD = "ON_HOLD",
71
+ WAITING = "WAITING",
72
+ WON = "WON"
73
+ }
74
+ /**
75
+ * Lead type (company or contact)
76
+ */
77
+ export declare enum LEAD_TYPE {
78
+ COMPANY = "COMPANY",
79
+ CONTACT = "CONTACT"
80
+ }
81
+ /**
82
+ * Base timestamp fields present in all entities
83
+ */
84
+ export interface TimestampFields {
2
85
  createdAt: string;
3
- email: string;
4
- firstName: string;
5
- id: string;
6
- lastName: string;
7
86
  updatedAt: string;
8
87
  }
9
- export interface BankBE {
10
- accountNumber: string;
11
- accountTitle: string;
12
- bankAddress: string;
13
- bankName: string;
14
- createdAt: string;
88
+ /**
89
+ * Common fields for preference-related entities
90
+ */
91
+ export interface PreferenceRelatedFields extends TimestampFields {
15
92
  enabled: boolean;
16
- iban: string;
17
93
  id: string;
18
94
  isDefault: boolean;
19
- preference: PreferenceBE;
20
- swiftCode: string;
21
- updatedAt: string;
22
95
  preferenceId: string;
96
+ preference?: PreferenceBE;
23
97
  }
24
- export interface BranchBE {
25
- branchAddress: string;
26
- branchName: string;
27
- createdAt: string;
28
- enabled: boolean;
98
+ /**
99
+ * Application user entity
100
+ */
101
+ export interface AppUserBE extends TimestampFields {
102
+ email: string;
103
+ firstName: string;
29
104
  id: string;
30
- isDefault: boolean;
31
- personEmail: string;
32
- personName: string;
33
- personPhone: string;
34
- preference: PreferenceBE;
35
- updatedAt: string;
36
- preferenceId: string;
105
+ lastName: string;
106
+ }
107
+ /**
108
+ * User profile entity with extended personal information
109
+ */
110
+ export interface ProfileBE extends TimestampFields {
111
+ avatar?: string;
112
+ dob?: string;
113
+ email: string;
114
+ firstName: string;
115
+ gender: GENDER;
116
+ id: string;
117
+ language?: string;
118
+ lastName: string;
119
+ location?: string;
120
+ phone: string;
121
+ skill?: string;
122
+ userId: string;
123
+ }
124
+ /**
125
+ * Product category entity
126
+ */
127
+ export interface ProductCategoryBE extends TimestampFields {
128
+ description?: string;
129
+ id: string;
130
+ name: string;
131
+ products: Array<ProductBE>;
132
+ }
133
+ /**
134
+ * Product entity
135
+ */
136
+ export interface ProductBE extends TimestampFields {
137
+ buyPrice: string;
138
+ currency: string;
139
+ description?: string;
140
+ id: string;
141
+ image?: string;
142
+ name: string;
143
+ productCategory?: ProductCategoryBE;
144
+ productCategoryId: string;
145
+ quantity: string;
146
+ ref?: string;
147
+ salePrice: string;
37
148
  }
38
- export interface CompanyBE {
149
+ /**
150
+ * Company entity
151
+ */
152
+ export interface CompanyBE extends TimestampFields {
39
153
  contacts: Array<ContactBE>;
40
154
  country: string;
41
- createdAt: string;
42
155
  email: string;
43
156
  id: string;
44
157
  name: string;
45
- phone: boolean;
158
+ phone: string;
46
159
  quotesInvoices: Array<QuoteInvoiceBE>;
47
- updatedAt: string;
48
- website: boolean;
160
+ website?: string;
49
161
  }
50
- export interface ContactBE {
51
- company: CompanyBE;
162
+ /**
163
+ * Contact entity (associated with a company)
164
+ */
165
+ export interface ContactBE extends TimestampFields {
166
+ company?: CompanyBE;
167
+ companyId: string;
52
168
  country: string;
53
- createdAt: string;
54
169
  email: string;
55
170
  firstName: string;
56
171
  id: string;
57
172
  lastName: string;
58
173
  phone: string;
59
- updatedAt: string;
60
174
  }
61
- export interface CurrencyBE {
62
- code: string;
63
- createdAt: string;
64
- enabled: boolean;
65
- id: string;
66
- isDefault: boolean;
67
- label: string;
68
- preference: PreferenceBE;
69
- updatedAt: string;
70
- preferenceId: string;
71
- }
72
- export interface CustomerBE {
73
- address: string;
175
+ /**
176
+ * Customer entity
177
+ */
178
+ export interface CustomerBE extends TimestampFields {
179
+ address?: string;
74
180
  city: string;
75
181
  country: string;
76
- createdAt: string;
77
- email: string;
182
+ email?: string;
78
183
  firstName: string;
79
184
  id: string;
80
185
  invoices: Array<QuoteInvoiceBE>;
81
186
  lastName: string;
82
187
  phone: string;
83
- updatedAt: string;
84
188
  }
85
- export interface ExpenseBE {
86
- createdAt: string;
87
- currency: string;
88
- description: string;
89
- expenseCategory: ExpenseCategoryBE;
189
+ /**
190
+ * Expense category entity
191
+ */
192
+ export interface ExpenseCategoryBE extends TimestampFields {
193
+ color: string;
194
+ description?: string;
195
+ expenses: Array<ExpenseBE>;
90
196
  id: string;
91
197
  name: string;
92
- ref: string;
93
- total: string;
94
- updatedAt: string;
95
198
  }
96
- export interface ExpenseCategoryBE {
97
- color: string;
98
- createdAt: string;
199
+ /**
200
+ * Expense entity
201
+ */
202
+ export interface ExpenseBE extends TimestampFields {
203
+ currency: string;
99
204
  description: string;
100
- expenses: Array<ExpenseBE>;
205
+ expenseCategory?: ExpenseCategoryBE;
206
+ expenseCategoryId: string;
101
207
  id: string;
102
208
  name: string;
103
- updatedAt: string;
209
+ ref?: string;
210
+ total: string;
104
211
  }
105
- export interface LeadBE {
106
- createdAt: string;
212
+ /**
213
+ * Quote/Invoice entity
214
+ */
215
+ export interface QuoteInvoiceBE extends TimestampFields {
216
+ category: QUOTE_INVOICE_CATEGORY;
217
+ company?: CompanyBE;
218
+ companyId?: string;
219
+ currency: string;
220
+ customer?: CustomerBE;
221
+ customerId?: string;
222
+ date: string;
223
+ discount?: string;
224
+ discountUnit: DISCOUNT_UNIT;
225
+ expiryDate: string;
107
226
  id: string;
108
- notes: string;
109
- source: string;
110
- status: string;
111
- type: string;
112
- updatedAt: string;
227
+ invoiceStatus: INVOICE_STATUS;
228
+ note: string;
229
+ payments: Array<PaymentBE>;
230
+ products: Array<ProductBE>;
231
+ quoteStatus: QUOTE_STATUS;
232
+ ref: string;
233
+ services: Array<ServiceBE>;
234
+ subTotal: string;
235
+ taxRate: string;
236
+ total: string;
113
237
  }
114
- export interface MenuOrderBE {
115
- createdAt: string;
238
+ /**
239
+ * Service entity (for quotes/invoices)
240
+ */
241
+ export interface ServiceBE extends TimestampFields {
242
+ description?: string;
116
243
  id: string;
117
- label: string;
118
- order: number;
119
- preference: PreferenceBE;
120
- updatedAt: string;
121
- preferenceId: string;
244
+ name: string;
245
+ price: string;
246
+ quantity: string;
247
+ quoteInvoice?: QuoteInvoiceBE;
248
+ quoteInvoiceId: string;
122
249
  }
123
- export interface PaymentBE {
250
+ /**
251
+ * Payment entity
252
+ */
253
+ export interface PaymentBE extends TimestampFields {
124
254
  amount: string;
125
- attachment: string;
126
- createdAt: string;
255
+ attachment?: string;
256
+ balance: string;
127
257
  currency: string;
128
258
  date: string;
129
- description: string;
130
- id: string;
131
- mode: 'BANK TRANSFER' | 'CASH' | 'CHEQUE' | 'OTHER';
132
- paymentType: 'FULL_AMOUNT' | 'PARTIAL_AMOUNT';
133
- quoteInvoice: QuoteInvoiceBE;
134
- ref: string;
135
- updatedAt: string;
136
- }
137
- export interface PaymentModeBE {
138
- createdAt: string;
139
- enabled: boolean;
259
+ description?: string;
140
260
  id: string;
141
- isDefault: boolean;
142
- label: 'BANK_TRANSFER' | 'CASH' | 'CHEQUE' | 'OTHER';
143
- preference: PreferenceBE;
144
- updatedAt: string;
145
- preferenceId: string;
261
+ paymentMode?: PaymentModeBE;
262
+ paymentModeId: string;
263
+ paymentType: PAYMENT_TYPE;
264
+ quoteInvoice?: QuoteInvoiceBE;
265
+ quoteInvoiceId: string;
266
+ ref?: string;
146
267
  }
147
- export interface PreferenceBE {
268
+ /**
269
+ * User preferences and settings entity
270
+ */
271
+ export interface PreferenceBE extends TimestampFields {
148
272
  banks: Array<BankBE>;
149
273
  branches: Array<BranchBE>;
150
- createdAt: string;
151
274
  currencies: Array<CurrencyBE>;
152
275
  id: string;
153
276
  menuOrder: Array<MenuOrderBE>;
154
277
  onboarding: boolean;
155
278
  paymentModes: Array<PaymentModeBE>;
156
279
  taxes: Array<TaxBE>;
157
- updatedAt: string;
158
280
  }
159
- export interface ProductBE {
160
- authorName: string;
161
- buyPrice: string;
162
- createdAt: string;
163
- currency: string;
164
- description: string;
281
+ /**
282
+ * Menu order configuration entity
283
+ */
284
+ export interface MenuOrderBE extends TimestampFields {
165
285
  id: string;
166
- image: string;
167
- isbn: string;
168
- name: string;
169
- productCategoryId: string;
170
- quantity: string;
171
- ref: string;
172
- salePrice: string;
173
- updatedAt: string;
286
+ label: string;
287
+ order: number;
288
+ preference?: PreferenceBE;
289
+ preferenceId: string;
174
290
  }
175
- export interface ProductCategoryBE {
176
- createdAt: string;
177
- description: string;
178
- id: string;
179
- name: string;
180
- products: Array<ProductBE>;
181
- updatedAt: string;
291
+ /**
292
+ * Payment mode entity
293
+ */
294
+ export interface PaymentModeBE extends PreferenceRelatedFields {
295
+ label: string;
296
+ payments: Array<PaymentBE>;
182
297
  }
183
- export interface ProfileBE {
184
- avatar: string;
185
- createdAt: string;
186
- dob: string;
187
- email: string;
188
- firstName: string;
189
- gender: 'Male' | 'Female';
190
- id: string;
191
- language: string;
192
- lastName: string;
193
- location: string;
194
- phone: string;
195
- skill: string;
196
- updatedAt: string;
197
- userId: string;
298
+ /**
299
+ * Bank account entity
300
+ */
301
+ export interface BankBE extends PreferenceRelatedFields {
302
+ accountNumber: string;
303
+ accountTitle: string;
304
+ bankAddress?: string;
305
+ bankName: string;
306
+ iban?: string;
307
+ swiftCode?: string;
198
308
  }
199
- export interface QuoteInvoiceBE {
200
- category: 'Quote' | 'Invoice';
201
- company: CompanyBE;
202
- createdAt: string;
203
- currency: string;
204
- customer: CustomerBE;
205
- date: string;
206
- discount: string;
207
- discountUnit: string;
208
- expiryDate: string;
209
- id: string;
210
- invoiceStatus: 'UNPAID' | 'PAID';
211
- note: string;
212
- payments: Array<PaymentBE>;
213
- products: Array<ProductBE>;
214
- quoteStatus: 'DRAFT' | 'PENDING' | 'SENT' | 'ACCEPTED' | 'DECLINED';
215
- ref: string;
216
- services: Array<ServiceBE>;
217
- subTotal: string;
309
+ /**
310
+ * Tax configuration entity
311
+ */
312
+ export interface TaxBE extends PreferenceRelatedFields {
313
+ description?: string;
314
+ taxName: string;
218
315
  taxRate: string;
219
- total: string;
220
- updatedAt: string;
221
316
  }
222
- export interface TaxBE {
223
- createdAt: string;
224
- description: string;
225
- enabled: boolean;
317
+ /**
318
+ * Branch/Location entity
319
+ */
320
+ export interface BranchBE extends PreferenceRelatedFields {
321
+ branchAddress: string;
322
+ branchName: string;
323
+ personEmail: string;
324
+ personName: string;
325
+ personPhone: string;
326
+ }
327
+ /**
328
+ * Currency entity
329
+ */
330
+ export interface CurrencyBE extends PreferenceRelatedFields {
331
+ code: string;
332
+ label: string;
333
+ }
334
+ /**
335
+ * Lead entity for CRM
336
+ */
337
+ export interface LeadBE extends TimestampFields {
226
338
  id: string;
227
- isDefault: boolean;
228
- preference: PreferenceBE;
229
- taxName: string;
230
- taxRate: string;
231
- updatedAt: string;
232
- preferenceId: string;
339
+ notes?: string;
340
+ source: LEAD_SOURCE;
341
+ status: LEAD_STATUS;
342
+ type: LEAD_TYPE;
233
343
  }
234
- export interface ServiceBE {
235
- createdAt: string;
236
- description?: string;
344
+ /**
345
+ * Request form submission entity
346
+ */
347
+ export interface RequestFormBE extends TimestampFields {
348
+ businessType: string;
349
+ companyName: string;
350
+ companySize?: string;
351
+ designation: string;
352
+ firstName: string;
353
+ headOffice?: string;
237
354
  id: string;
238
- name: string;
239
- price: string;
240
- quantity: string;
241
- quoteInvoice: QuoteInvoiceBE;
242
- quoteInvoiceId: string;
243
- updatedAt: string;
355
+ lastName: string;
356
+ phoneNumber: string;
357
+ website?: string;
358
+ workEmail: string;
244
359
  }
@@ -1,3 +1,95 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-explicit-any, no-restricted-globals */
2
+ // ============================================================================
3
+ // ENUMS
4
+ // ============================================================================
3
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LEAD_TYPE = exports.LEAD_STATUS = exports.LEAD_SOURCE = exports.PAYMENT_TYPE = exports.QUOTE_STATUS = exports.INVOICE_STATUS = exports.DISCOUNT_UNIT = exports.QUOTE_INVOICE_CATEGORY = exports.GENDER = void 0;
7
+ /**
8
+ * Gender options for user profiles
9
+ */
10
+ var GENDER;
11
+ (function (GENDER) {
12
+ GENDER["MALE"] = "MALE";
13
+ GENDER["FEMALE"] = "FEMALE";
14
+ })(GENDER || (exports.GENDER = GENDER = {}));
15
+ /**
16
+ * Quote and Invoice category types
17
+ */
18
+ var QUOTE_INVOICE_CATEGORY;
19
+ (function (QUOTE_INVOICE_CATEGORY) {
20
+ QUOTE_INVOICE_CATEGORY["QUOTE"] = "QUOTE";
21
+ QUOTE_INVOICE_CATEGORY["INVOICE"] = "INVOICE";
22
+ })(QUOTE_INVOICE_CATEGORY || (exports.QUOTE_INVOICE_CATEGORY = QUOTE_INVOICE_CATEGORY = {}));
23
+ /**
24
+ * Discount unit types (fixed amount or percentage)
25
+ */
26
+ var DISCOUNT_UNIT;
27
+ (function (DISCOUNT_UNIT) {
28
+ DISCOUNT_UNIT["FIXED_VALUE"] = "FIXED_VALUE";
29
+ DISCOUNT_UNIT["PERCENTAGE_VALUE"] = "PERCENTAGE_VALUE";
30
+ })(DISCOUNT_UNIT || (exports.DISCOUNT_UNIT = DISCOUNT_UNIT = {}));
31
+ /**
32
+ * Invoice payment status
33
+ */
34
+ var INVOICE_STATUS;
35
+ (function (INVOICE_STATUS) {
36
+ INVOICE_STATUS["UNPAID"] = "UNPAID";
37
+ INVOICE_STATUS["PAID"] = "PAID";
38
+ })(INVOICE_STATUS || (exports.INVOICE_STATUS = INVOICE_STATUS = {}));
39
+ /**
40
+ * Quote lifecycle status
41
+ */
42
+ var QUOTE_STATUS;
43
+ (function (QUOTE_STATUS) {
44
+ QUOTE_STATUS["DRAFT"] = "DRAFT";
45
+ QUOTE_STATUS["PENDING"] = "PENDING";
46
+ QUOTE_STATUS["SENT"] = "SENT";
47
+ QUOTE_STATUS["ACCEPTED"] = "ACCEPTED";
48
+ QUOTE_STATUS["DECLINED"] = "DECLINED";
49
+ })(QUOTE_STATUS || (exports.QUOTE_STATUS = QUOTE_STATUS = {}));
50
+ /**
51
+ * Payment type (full or partial)
52
+ */
53
+ var PAYMENT_TYPE;
54
+ (function (PAYMENT_TYPE) {
55
+ PAYMENT_TYPE["FULL_AMOUNT"] = "FULL_AMOUNT";
56
+ PAYMENT_TYPE["PARTIAL_AMOUNT"] = "PARTIAL_AMOUNT";
57
+ })(PAYMENT_TYPE || (exports.PAYMENT_TYPE = PAYMENT_TYPE = {}));
58
+ /**
59
+ * Lead source options
60
+ */
61
+ var LEAD_SOURCE;
62
+ (function (LEAD_SOURCE) {
63
+ LEAD_SOURCE["ADVERTISING"] = "ADVERTISING";
64
+ LEAD_SOURCE["CUSTOMER_REFERRAL"] = "CUSTOMER_REFERRAL";
65
+ LEAD_SOURCE["FRIEND"] = "FRIEND";
66
+ LEAD_SOURCE["LINKEDIN"] = "LINKEDIN";
67
+ LEAD_SOURCE["OTHER"] = "OTHER";
68
+ LEAD_SOURCE["PROFESSIONAL_NETWORK"] = "PROFESSIONAL_NETWORK";
69
+ LEAD_SOURCE["SALES"] = "SALES";
70
+ LEAD_SOURCE["SOCIAL_MEDIA"] = "SOCIAL_MEDIA";
71
+ LEAD_SOURCE["WEBSITE"] = "WEBSITE";
72
+ })(LEAD_SOURCE || (exports.LEAD_SOURCE = LEAD_SOURCE = {}));
73
+ /**
74
+ * Lead status options
75
+ */
76
+ var LEAD_STATUS;
77
+ (function (LEAD_STATUS) {
78
+ LEAD_STATUS["ASSIGNED"] = "ASSIGNED";
79
+ LEAD_STATUS["CANCELLED"] = "CANCELLED";
80
+ LEAD_STATUS["DRAFT"] = "DRAFT";
81
+ LEAD_STATUS["IN_NEGOTIATION"] = "IN_NEGOTIATION";
82
+ LEAD_STATUS["LOOSE"] = "LOOSE";
83
+ LEAD_STATUS["NEW"] = "NEW";
84
+ LEAD_STATUS["ON_HOLD"] = "ON_HOLD";
85
+ LEAD_STATUS["WAITING"] = "WAITING";
86
+ LEAD_STATUS["WON"] = "WON";
87
+ })(LEAD_STATUS || (exports.LEAD_STATUS = LEAD_STATUS = {}));
88
+ /**
89
+ * Lead type (company or contact)
90
+ */
91
+ var LEAD_TYPE;
92
+ (function (LEAD_TYPE) {
93
+ LEAD_TYPE["COMPANY"] = "COMPANY";
94
+ LEAD_TYPE["CONTACT"] = "CONTACT";
95
+ })(LEAD_TYPE || (exports.LEAD_TYPE = LEAD_TYPE = {}));
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- /* eslint-disable no-restricted-globals */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.countriesTimeZones = void 0;
5
4
  exports.countriesTimeZones = [
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- /* eslint-disable no-restricted-globals */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.currencies = void 0;
5
4
  exports.currencies = {