@verma-consulting/common-library 0.1.12 → 0.1.14
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/dist/index.d.mts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +45 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45 -44
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -32,7 +32,7 @@ interface RegisterInterface {
|
|
|
32
32
|
status?: string;
|
|
33
33
|
role?: string;
|
|
34
34
|
dateOfBirth?: Date | null;
|
|
35
|
-
|
|
35
|
+
phone?: string;
|
|
36
36
|
gender?: string;
|
|
37
37
|
organizationName?: string;
|
|
38
38
|
termsNConditionFlag?: boolean;
|
|
@@ -65,7 +65,7 @@ interface UserInterface {
|
|
|
65
65
|
role?: string;
|
|
66
66
|
isEmailConfirmed?: boolean;
|
|
67
67
|
qrVerified?: boolean;
|
|
68
|
-
|
|
68
|
+
phone?: string;
|
|
69
69
|
gender?: string;
|
|
70
70
|
userName?: string;
|
|
71
71
|
email?: string;
|
|
@@ -548,7 +548,8 @@ interface ClientInterface {
|
|
|
548
548
|
invoicePrefix?: string;
|
|
549
549
|
source?: string;
|
|
550
550
|
email?: string;
|
|
551
|
-
|
|
551
|
+
individualName?: string;
|
|
552
|
+
businessName?: string;
|
|
552
553
|
phone?: string;
|
|
553
554
|
website?: string;
|
|
554
555
|
industry?: string;
|
|
@@ -602,7 +603,7 @@ interface ContactInterface {
|
|
|
602
603
|
email?: string;
|
|
603
604
|
linkedinUrl?: string;
|
|
604
605
|
twitterUrl?: string;
|
|
605
|
-
|
|
606
|
+
phone?: string;
|
|
606
607
|
role?: string;
|
|
607
608
|
clientId?: string;
|
|
608
609
|
userId?: string;
|
|
@@ -2095,7 +2096,7 @@ declare const defaults: {
|
|
|
2095
2096
|
jobTitle: string;
|
|
2096
2097
|
password: string;
|
|
2097
2098
|
dateOfBirth: null;
|
|
2098
|
-
|
|
2099
|
+
phone: string;
|
|
2099
2100
|
permissions: never[];
|
|
2100
2101
|
avatar: null;
|
|
2101
2102
|
notificationSettings: {
|
|
@@ -2115,7 +2116,8 @@ declare const defaults: {
|
|
|
2115
2116
|
description: string;
|
|
2116
2117
|
status: string;
|
|
2117
2118
|
email: string;
|
|
2118
|
-
|
|
2119
|
+
individualName: string;
|
|
2120
|
+
businessName: string;
|
|
2119
2121
|
phone: string;
|
|
2120
2122
|
accountNumber: string;
|
|
2121
2123
|
invoicePrefix: string;
|
|
@@ -2148,7 +2150,7 @@ declare const defaults: {
|
|
|
2148
2150
|
description: string;
|
|
2149
2151
|
status: string;
|
|
2150
2152
|
email: string;
|
|
2151
|
-
|
|
2153
|
+
phone: string;
|
|
2152
2154
|
role: string;
|
|
2153
2155
|
linkedinUrl: string;
|
|
2154
2156
|
twitterUrl: string;
|
|
@@ -2525,7 +2527,7 @@ declare const defaultsWithTypes: {
|
|
|
2525
2527
|
default: null;
|
|
2526
2528
|
type: string;
|
|
2527
2529
|
};
|
|
2528
|
-
|
|
2530
|
+
phone: {
|
|
2529
2531
|
default: string;
|
|
2530
2532
|
type: string;
|
|
2531
2533
|
};
|
|
@@ -2713,7 +2715,7 @@ declare const defaultsWithTypes: {
|
|
|
2713
2715
|
default: string;
|
|
2714
2716
|
type: string;
|
|
2715
2717
|
};
|
|
2716
|
-
|
|
2718
|
+
phone: {
|
|
2717
2719
|
default: string;
|
|
2718
2720
|
type: string;
|
|
2719
2721
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ interface RegisterInterface {
|
|
|
32
32
|
status?: string;
|
|
33
33
|
role?: string;
|
|
34
34
|
dateOfBirth?: Date | null;
|
|
35
|
-
|
|
35
|
+
phone?: string;
|
|
36
36
|
gender?: string;
|
|
37
37
|
organizationName?: string;
|
|
38
38
|
termsNConditionFlag?: boolean;
|
|
@@ -65,7 +65,7 @@ interface UserInterface {
|
|
|
65
65
|
role?: string;
|
|
66
66
|
isEmailConfirmed?: boolean;
|
|
67
67
|
qrVerified?: boolean;
|
|
68
|
-
|
|
68
|
+
phone?: string;
|
|
69
69
|
gender?: string;
|
|
70
70
|
userName?: string;
|
|
71
71
|
email?: string;
|
|
@@ -548,7 +548,8 @@ interface ClientInterface {
|
|
|
548
548
|
invoicePrefix?: string;
|
|
549
549
|
source?: string;
|
|
550
550
|
email?: string;
|
|
551
|
-
|
|
551
|
+
individualName?: string;
|
|
552
|
+
businessName?: string;
|
|
552
553
|
phone?: string;
|
|
553
554
|
website?: string;
|
|
554
555
|
industry?: string;
|
|
@@ -602,7 +603,7 @@ interface ContactInterface {
|
|
|
602
603
|
email?: string;
|
|
603
604
|
linkedinUrl?: string;
|
|
604
605
|
twitterUrl?: string;
|
|
605
|
-
|
|
606
|
+
phone?: string;
|
|
606
607
|
role?: string;
|
|
607
608
|
clientId?: string;
|
|
608
609
|
userId?: string;
|
|
@@ -2095,7 +2096,7 @@ declare const defaults: {
|
|
|
2095
2096
|
jobTitle: string;
|
|
2096
2097
|
password: string;
|
|
2097
2098
|
dateOfBirth: null;
|
|
2098
|
-
|
|
2099
|
+
phone: string;
|
|
2099
2100
|
permissions: never[];
|
|
2100
2101
|
avatar: null;
|
|
2101
2102
|
notificationSettings: {
|
|
@@ -2115,7 +2116,8 @@ declare const defaults: {
|
|
|
2115
2116
|
description: string;
|
|
2116
2117
|
status: string;
|
|
2117
2118
|
email: string;
|
|
2118
|
-
|
|
2119
|
+
individualName: string;
|
|
2120
|
+
businessName: string;
|
|
2119
2121
|
phone: string;
|
|
2120
2122
|
accountNumber: string;
|
|
2121
2123
|
invoicePrefix: string;
|
|
@@ -2148,7 +2150,7 @@ declare const defaults: {
|
|
|
2148
2150
|
description: string;
|
|
2149
2151
|
status: string;
|
|
2150
2152
|
email: string;
|
|
2151
|
-
|
|
2153
|
+
phone: string;
|
|
2152
2154
|
role: string;
|
|
2153
2155
|
linkedinUrl: string;
|
|
2154
2156
|
twitterUrl: string;
|
|
@@ -2525,7 +2527,7 @@ declare const defaultsWithTypes: {
|
|
|
2525
2527
|
default: null;
|
|
2526
2528
|
type: string;
|
|
2527
2529
|
};
|
|
2528
|
-
|
|
2530
|
+
phone: {
|
|
2529
2531
|
default: string;
|
|
2530
2532
|
type: string;
|
|
2531
2533
|
};
|
|
@@ -2713,7 +2715,7 @@ declare const defaultsWithTypes: {
|
|
|
2713
2715
|
default: string;
|
|
2714
2716
|
type: string;
|
|
2715
2717
|
};
|
|
2716
|
-
|
|
2718
|
+
phone: {
|
|
2717
2719
|
default: string;
|
|
2718
2720
|
type: string;
|
|
2719
2721
|
};
|
package/dist/index.js
CHANGED
|
@@ -1842,7 +1842,7 @@ var defaults = {
|
|
|
1842
1842
|
jobTitle: "",
|
|
1843
1843
|
password: "",
|
|
1844
1844
|
dateOfBirth: null,
|
|
1845
|
-
|
|
1845
|
+
phone: "",
|
|
1846
1846
|
permissions: [],
|
|
1847
1847
|
avatar: null,
|
|
1848
1848
|
notificationSettings: {
|
|
@@ -1862,7 +1862,8 @@ var defaults = {
|
|
|
1862
1862
|
description: "",
|
|
1863
1863
|
status: "Ready",
|
|
1864
1864
|
email: "",
|
|
1865
|
-
|
|
1865
|
+
individualName: "",
|
|
1866
|
+
businessName: "",
|
|
1866
1867
|
phone: "",
|
|
1867
1868
|
accountNumber: "",
|
|
1868
1869
|
invoicePrefix: "",
|
|
@@ -1873,7 +1874,7 @@ var defaults = {
|
|
|
1873
1874
|
industry: "",
|
|
1874
1875
|
annualRevenue: 0,
|
|
1875
1876
|
balance: 0,
|
|
1876
|
-
nextInvoiceSequence:
|
|
1877
|
+
nextInvoiceSequence: 1,
|
|
1877
1878
|
taxExempt: "none",
|
|
1878
1879
|
website: "",
|
|
1879
1880
|
source: "Advertisement",
|
|
@@ -1895,7 +1896,7 @@ var defaults = {
|
|
|
1895
1896
|
description: "",
|
|
1896
1897
|
status: "Ready",
|
|
1897
1898
|
email: "",
|
|
1898
|
-
|
|
1899
|
+
phone: "",
|
|
1899
1900
|
role: "",
|
|
1900
1901
|
linkedinUrl: "",
|
|
1901
1902
|
twitterUrl: "",
|
|
@@ -2247,8 +2248,8 @@ var defaultsWithTypes = {
|
|
|
2247
2248
|
jobTitle: { default: "", type: "String" },
|
|
2248
2249
|
password: { default: "", type: "String" },
|
|
2249
2250
|
dateOfBirth: { default: null, type: "Date" },
|
|
2250
|
-
|
|
2251
|
-
permissions: { default: [], type: "
|
|
2251
|
+
phone: { default: "", type: "String" },
|
|
2252
|
+
permissions: { default: [], type: "LIST" },
|
|
2252
2253
|
avatar: { default: null, type: "String" },
|
|
2253
2254
|
notificationSettings: {
|
|
2254
2255
|
dailyReports: { default: false, type: "Boolean" },
|
|
@@ -2268,7 +2269,7 @@ var defaultsWithTypes = {
|
|
|
2268
2269
|
status: { default: "Ready", type: "String" },
|
|
2269
2270
|
email: { default: "", type: "String" },
|
|
2270
2271
|
contactName: { default: "", type: "String" },
|
|
2271
|
-
phone: { default: "", type: "
|
|
2272
|
+
phone: { default: "", type: "PhoneNumber" },
|
|
2272
2273
|
accountNumber: { default: "", type: "String" },
|
|
2273
2274
|
invoicePrefix: { default: "", type: "String" },
|
|
2274
2275
|
sicCode: { default: "", type: "String" },
|
|
@@ -2288,24 +2289,24 @@ var defaultsWithTypes = {
|
|
|
2288
2289
|
twitterUrl: { default: "", type: "String" },
|
|
2289
2290
|
angelUrl: { default: "", type: "String" },
|
|
2290
2291
|
crunchbaseUrl: { default: "", type: "String" },
|
|
2291
|
-
accountOwner: { default: "", type: "
|
|
2292
|
-
contacts: { default: "", type: "
|
|
2293
|
-
deals: { default: "", type: "
|
|
2294
|
-
invoices: { default: "", type: "
|
|
2295
|
-
engagements: { default: "", type: "
|
|
2296
|
-
tasks: { default: "", type: "
|
|
2292
|
+
accountOwner: { default: "", type: "OBJECT" },
|
|
2293
|
+
contacts: { default: "", type: "LIST" },
|
|
2294
|
+
deals: { default: "", type: "LIST" },
|
|
2295
|
+
invoices: { default: "", type: "LIST" },
|
|
2296
|
+
engagements: { default: "", type: "LIST" },
|
|
2297
|
+
tasks: { default: "", type: "LIST" }
|
|
2297
2298
|
},
|
|
2298
2299
|
contacts: {
|
|
2299
2300
|
name: { default: "", type: "String" },
|
|
2300
2301
|
description: { default: "", type: "String" },
|
|
2301
2302
|
status: { default: "Ready", type: "String" },
|
|
2302
2303
|
email: { default: "", type: "String" },
|
|
2303
|
-
|
|
2304
|
+
phone: { default: "", type: "String" },
|
|
2304
2305
|
role: { default: "", type: "String" },
|
|
2305
2306
|
linkedinUrl: { default: "", type: "String" },
|
|
2306
2307
|
twitterUrl: { default: "", type: "String" },
|
|
2307
|
-
client: { default: "", type: "
|
|
2308
|
-
engagements: { default: "", type: "
|
|
2308
|
+
client: { default: "", type: "OBJECT" },
|
|
2309
|
+
engagements: { default: "", type: "LIST" }
|
|
2309
2310
|
},
|
|
2310
2311
|
inventories: {
|
|
2311
2312
|
name: { default: "", type: "String" },
|
|
@@ -2342,9 +2343,9 @@ var defaultsWithTypes = {
|
|
|
2342
2343
|
expectedRevenue: { default: 0, type: "Int" },
|
|
2343
2344
|
probability: { default: 0, type: "Int" },
|
|
2344
2345
|
nextStep: { default: "", type: "String" },
|
|
2345
|
-
accountOwner: { default: "", type: "
|
|
2346
|
-
client: { default: "", type: "
|
|
2347
|
-
campaign: { default: "", type: "
|
|
2346
|
+
accountOwner: { default: "", type: "OBJECT" },
|
|
2347
|
+
client: { default: "", type: "OBJECT" },
|
|
2348
|
+
campaign: { default: "", type: "OBJECT" }
|
|
2348
2349
|
},
|
|
2349
2350
|
deals: {
|
|
2350
2351
|
name: { default: "", type: "String" },
|
|
@@ -2357,9 +2358,9 @@ var defaultsWithTypes = {
|
|
|
2357
2358
|
expectedRevenue: { default: 0, type: "Int" },
|
|
2358
2359
|
probability: { default: 0, type: "Int" },
|
|
2359
2360
|
nextStep: { default: "", type: "String" },
|
|
2360
|
-
accountOwner: { default: "", type: "
|
|
2361
|
-
client: { default: "", type: "
|
|
2362
|
-
campaign: { default: "", type: "
|
|
2361
|
+
accountOwner: { default: "", type: "OBJECT" },
|
|
2362
|
+
client: { default: "", type: "OBJECT" },
|
|
2363
|
+
campaign: { default: "", type: "OBJECT" }
|
|
2363
2364
|
},
|
|
2364
2365
|
campaigns: {
|
|
2365
2366
|
name: { default: "", type: "String" },
|
|
@@ -2374,9 +2375,9 @@ var defaultsWithTypes = {
|
|
|
2374
2375
|
actualCost: { default: 0, type: "Int" },
|
|
2375
2376
|
numbersSent: { default: 0, type: "Int" },
|
|
2376
2377
|
expectedResponse: { default: "", type: "String" },
|
|
2377
|
-
accountOwner: { default: "", type: "
|
|
2378
|
-
leads: { default: "", type: "
|
|
2379
|
-
deals: { default: "", type: "
|
|
2378
|
+
accountOwner: { default: "", type: "OBJECT" },
|
|
2379
|
+
leads: { default: "", type: "OBJECT" },
|
|
2380
|
+
deals: { default: "", type: "OBJECT" }
|
|
2380
2381
|
},
|
|
2381
2382
|
invoices: {
|
|
2382
2383
|
name: { default: "", type: "String" },
|
|
@@ -2417,12 +2418,12 @@ var defaultsWithTypes = {
|
|
|
2417
2418
|
livemode: { default: false, type: "Boolean" },
|
|
2418
2419
|
paid: { default: false, type: "Boolean" },
|
|
2419
2420
|
paidOutOfBand: { default: false, type: "Boolean" },
|
|
2420
|
-
client: { default: "", type: "
|
|
2421
|
-
accountOwner: { default: "", type: "
|
|
2422
|
-
deal: { default: "", type: "
|
|
2421
|
+
client: { default: "", type: "OBJECT" },
|
|
2422
|
+
accountOwner: { default: "", type: "OBJECT" },
|
|
2423
|
+
deal: { default: "", type: "OBJECT" }
|
|
2423
2424
|
},
|
|
2424
2425
|
issuer: {
|
|
2425
|
-
account: { default: "", type: "
|
|
2426
|
+
account: { default: "", type: "OBJECT" },
|
|
2426
2427
|
type: { default: "", type: "String" }
|
|
2427
2428
|
},
|
|
2428
2429
|
engagements: {
|
|
@@ -2430,8 +2431,8 @@ var defaultsWithTypes = {
|
|
|
2430
2431
|
description: { default: "", type: "String" },
|
|
2431
2432
|
status: { default: "Ready", type: "String" },
|
|
2432
2433
|
engagementDate: { default: null, type: "Date" },
|
|
2433
|
-
client: { default: "", type: "
|
|
2434
|
-
contact: { default: "", type: "
|
|
2434
|
+
client: { default: "", type: "OBJECT" },
|
|
2435
|
+
contact: { default: "", type: "OBJECT" }
|
|
2435
2436
|
},
|
|
2436
2437
|
pools: {
|
|
2437
2438
|
name: { default: "", type: "String" },
|
|
@@ -2443,9 +2444,9 @@ var defaultsWithTypes = {
|
|
|
2443
2444
|
description: { default: null, type: "String" },
|
|
2444
2445
|
status: { default: "Ready", type: "String" },
|
|
2445
2446
|
productType: { default: "service", type: "String" },
|
|
2446
|
-
client: { default: "", type: "
|
|
2447
|
-
inventory: { default: "", type: "
|
|
2448
|
-
accountOwner: { default: "", type: "
|
|
2447
|
+
client: { default: "", type: "OBJECT" },
|
|
2448
|
+
inventory: { default: "", type: "OBJECT" },
|
|
2449
|
+
accountOwner: { default: "", type: "OBJECT" },
|
|
2449
2450
|
active: { default: true, type: "Boolean" },
|
|
2450
2451
|
shippable: { default: false, type: "Boolean" },
|
|
2451
2452
|
statementDescriptor: { default: "", type: "String" },
|
|
@@ -2499,14 +2500,14 @@ var defaultsWithTypes = {
|
|
|
2499
2500
|
nextPendingInvoiceItemInvoice: { default: null, type: "String" },
|
|
2500
2501
|
collectionMethod: { default: "charge_automatically", type: "String" },
|
|
2501
2502
|
missingPaymentMethod: { default: "create_invoice", type: "String" },
|
|
2502
|
-
client: { default: "", type: "
|
|
2503
|
-
deal: { default: "", type: "
|
|
2504
|
-
accountOwner: { default: "", type: "
|
|
2503
|
+
client: { default: "", type: "OBJECT" },
|
|
2504
|
+
deal: { default: "", type: "OBJECT" },
|
|
2505
|
+
accountOwner: { default: "", type: "OBJECT" }
|
|
2505
2506
|
},
|
|
2506
2507
|
automaticTax: {
|
|
2507
2508
|
enabled: { default: false, type: "Boolean" },
|
|
2508
2509
|
liability: {
|
|
2509
|
-
account: { default: "", type: "
|
|
2510
|
+
account: { default: "", type: "OBJECT" },
|
|
2510
2511
|
type: { default: "", type: "String" }
|
|
2511
2512
|
},
|
|
2512
2513
|
status: { default: "", type: "String" }
|
|
@@ -2539,9 +2540,9 @@ var defaultsWithTypes = {
|
|
|
2539
2540
|
statementDescriptorSuffix: { default: "", type: "String" },
|
|
2540
2541
|
livemode: { default: false, type: "Boolean" },
|
|
2541
2542
|
receiptEmail: { default: "", type: "String" },
|
|
2542
|
-
client: { default: "", type: "
|
|
2543
|
-
subscription: { default: "", type: "
|
|
2544
|
-
invoice: { default: "", type: "
|
|
2543
|
+
client: { default: "", type: "OBJECT" },
|
|
2544
|
+
subscription: { default: "", type: "OBJECT" },
|
|
2545
|
+
invoice: { default: "", type: "OBJECT" }
|
|
2545
2546
|
},
|
|
2546
2547
|
reports: {
|
|
2547
2548
|
label: { default: "", type: "String" },
|
|
@@ -2589,7 +2590,7 @@ var defaultsWithTypes = {
|
|
|
2589
2590
|
selected: { default: false, type: "Boolean" },
|
|
2590
2591
|
key: { default: "", type: "String" },
|
|
2591
2592
|
type: { default: "", type: "String" },
|
|
2592
|
-
options: { default: [], type: "
|
|
2593
|
+
options: { default: [], type: "LIST" }
|
|
2593
2594
|
},
|
|
2594
2595
|
comments: {
|
|
2595
2596
|
label: { default: "", type: "String" }
|
|
@@ -2606,8 +2607,8 @@ var defaultsWithTypes = {
|
|
|
2606
2607
|
repeat: { default: false, type: "Boolean" },
|
|
2607
2608
|
repeatDate: { default: null, type: "Date" },
|
|
2608
2609
|
repeatTime: { default: "", type: "Time" },
|
|
2609
|
-
client: { default: "", type: "
|
|
2610
|
-
assignee: { default: "", type: "
|
|
2610
|
+
client: { default: "", type: "OBJECT" },
|
|
2611
|
+
assignee: { default: "", type: "OBJECT" }
|
|
2611
2612
|
},
|
|
2612
2613
|
integrations: {
|
|
2613
2614
|
name: { default: "", type: "String" },
|