@verma-consulting/common-library 0.1.13 → 0.1.15
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 +32 -20
- package/dist/index.d.ts +32 -20
- package/dist/index.js +28 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -103,7 +103,7 @@ interface UserInterface {
|
|
|
103
103
|
usagesCreated?: UsageInterface[];
|
|
104
104
|
productsCreated?: ProductInterface[];
|
|
105
105
|
subscriptionsCreated?: SubscriptionInterface[];
|
|
106
|
-
paymentsCreated?:
|
|
106
|
+
paymentsCreated?: ChargeInterface[];
|
|
107
107
|
permissions?: PermissionInterface[];
|
|
108
108
|
notifications?: NotificationInterface[];
|
|
109
109
|
avatar?: FileInterface;
|
|
@@ -240,7 +240,7 @@ interface ProductInterface {
|
|
|
240
240
|
price?: PriceInterface;
|
|
241
241
|
client?: ClientInterface;
|
|
242
242
|
subscriptions?: SubscriptionInterface[];
|
|
243
|
-
payments?:
|
|
243
|
+
payments?: ChargeInterface[];
|
|
244
244
|
poolId?: string;
|
|
245
245
|
pool?: PoolInterface;
|
|
246
246
|
organizationId?: string;
|
|
@@ -338,7 +338,7 @@ interface PauseCollectionInterface {
|
|
|
338
338
|
behavior?: string;
|
|
339
339
|
resumesAt?: Date;
|
|
340
340
|
}
|
|
341
|
-
interface
|
|
341
|
+
interface ChargeInterface {
|
|
342
342
|
id?: string;
|
|
343
343
|
createdAt?: Date;
|
|
344
344
|
updatedAt?: Date;
|
|
@@ -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;
|
|
@@ -581,7 +582,7 @@ interface ClientInterface {
|
|
|
581
582
|
tasks?: TaskInterface[];
|
|
582
583
|
products?: ProductInterface[];
|
|
583
584
|
subscriptions?: SubscriptionInterface[];
|
|
584
|
-
payments?:
|
|
585
|
+
payments?: ChargeInterface[];
|
|
585
586
|
contactIds?: string[];
|
|
586
587
|
dealIds?: string[];
|
|
587
588
|
invoiceIds?: string[];
|
|
@@ -757,7 +758,7 @@ interface InvoiceInterface {
|
|
|
757
758
|
poolId?: string | null;
|
|
758
759
|
accountOwnerId?: string;
|
|
759
760
|
dealId?: string;
|
|
760
|
-
payment?:
|
|
761
|
+
payment?: ChargeInterface;
|
|
761
762
|
contents?: ContentInterface[];
|
|
762
763
|
inventories?: InventoryInterface[];
|
|
763
764
|
inventoryIds?: string[];
|
|
@@ -884,7 +885,7 @@ interface PoolInterface {
|
|
|
884
885
|
lead?: LeadInterface;
|
|
885
886
|
product?: ProductInterface;
|
|
886
887
|
subscription?: SubscriptionInterface;
|
|
887
|
-
payment?:
|
|
888
|
+
payment?: ChargeInterface;
|
|
888
889
|
campaign?: CampaignInterface;
|
|
889
890
|
invoice?: InvoiceInterface;
|
|
890
891
|
engagement?: EngagementInterface;
|
|
@@ -1203,6 +1204,7 @@ declare enum paymentStatus {
|
|
|
1203
1204
|
declare enum OrganizationFeatures {
|
|
1204
1205
|
clients = "clients",
|
|
1205
1206
|
tasks = "tasks",
|
|
1207
|
+
products = "products",
|
|
1206
1208
|
inventories = "inventories",
|
|
1207
1209
|
invoices = "invoices",
|
|
1208
1210
|
leads = "leads",
|
|
@@ -1210,9 +1212,10 @@ declare enum OrganizationFeatures {
|
|
|
1210
1212
|
contacts = "contacts",
|
|
1211
1213
|
engagements = "engagements",
|
|
1212
1214
|
campaigns = "campaigns",
|
|
1213
|
-
products = "products",
|
|
1214
1215
|
subscriptions = "subscriptions",
|
|
1215
|
-
|
|
1216
|
+
charges = "charges",
|
|
1217
|
+
paymentMethods = "paymentMethods",
|
|
1218
|
+
disputes = "disputes",
|
|
1216
1219
|
dataPools = "dataPools",
|
|
1217
1220
|
lists = "lists",
|
|
1218
1221
|
reports = "reports"
|
|
@@ -1646,6 +1649,7 @@ declare const constants: {
|
|
|
1646
1649
|
MODEL_APP_MAPPING: {
|
|
1647
1650
|
clients: string;
|
|
1648
1651
|
inventories: string;
|
|
1652
|
+
products: string;
|
|
1649
1653
|
invoices: string;
|
|
1650
1654
|
tasks: string;
|
|
1651
1655
|
campaigns: string;
|
|
@@ -1653,9 +1657,10 @@ declare const constants: {
|
|
|
1653
1657
|
deals: string;
|
|
1654
1658
|
engagements: string;
|
|
1655
1659
|
leads: string;
|
|
1656
|
-
|
|
1657
|
-
products: string;
|
|
1660
|
+
charges: string;
|
|
1658
1661
|
subscriptions: string;
|
|
1662
|
+
paymentMethods: string;
|
|
1663
|
+
disputes: string;
|
|
1659
1664
|
};
|
|
1660
1665
|
NOT_INCLUDED_FIELDS: string[];
|
|
1661
1666
|
GQL_FIELD_TYPE: {
|
|
@@ -1688,14 +1693,16 @@ declare const constants: {
|
|
|
1688
1693
|
campaigns: string;
|
|
1689
1694
|
tasks: string;
|
|
1690
1695
|
clients: string;
|
|
1696
|
+
products: string;
|
|
1691
1697
|
inventories: string;
|
|
1692
1698
|
deals: string;
|
|
1693
1699
|
invoices: string;
|
|
1694
1700
|
contacts: string;
|
|
1695
1701
|
engagements: string;
|
|
1696
|
-
products: string;
|
|
1697
1702
|
subscriptions: string;
|
|
1698
|
-
|
|
1703
|
+
charges: string;
|
|
1704
|
+
paymentMethods: string;
|
|
1705
|
+
disputes: string;
|
|
1699
1706
|
content: string[];
|
|
1700
1707
|
relations: string[];
|
|
1701
1708
|
financials: string[];
|
|
@@ -1717,12 +1724,12 @@ declare const constants: {
|
|
|
1717
1724
|
code: string;
|
|
1718
1725
|
label: string;
|
|
1719
1726
|
phone: string;
|
|
1720
|
-
suggested
|
|
1727
|
+
suggested: boolean;
|
|
1721
1728
|
} | {
|
|
1722
1729
|
code: string;
|
|
1723
1730
|
label: string;
|
|
1724
1731
|
phone: string;
|
|
1725
|
-
suggested
|
|
1732
|
+
suggested?: undefined;
|
|
1726
1733
|
})[];
|
|
1727
1734
|
CURRENCIES: {
|
|
1728
1735
|
aed: string;
|
|
@@ -2115,7 +2122,8 @@ declare const defaults: {
|
|
|
2115
2122
|
description: string;
|
|
2116
2123
|
status: string;
|
|
2117
2124
|
email: string;
|
|
2118
|
-
|
|
2125
|
+
individualName: string;
|
|
2126
|
+
businessName: string;
|
|
2119
2127
|
phone: string;
|
|
2120
2128
|
accountNumber: string;
|
|
2121
2129
|
invoicePrefix: string;
|
|
@@ -2372,7 +2380,7 @@ declare const defaults: {
|
|
|
2372
2380
|
missingPaymentMethod: string;
|
|
2373
2381
|
};
|
|
2374
2382
|
};
|
|
2375
|
-
|
|
2383
|
+
charges: {
|
|
2376
2384
|
name: string;
|
|
2377
2385
|
description: string;
|
|
2378
2386
|
status: string;
|
|
@@ -2587,7 +2595,11 @@ declare const defaultsWithTypes: {
|
|
|
2587
2595
|
default: string;
|
|
2588
2596
|
type: string;
|
|
2589
2597
|
};
|
|
2590
|
-
|
|
2598
|
+
individualName: {
|
|
2599
|
+
default: string;
|
|
2600
|
+
type: string;
|
|
2601
|
+
};
|
|
2602
|
+
businessName: {
|
|
2591
2603
|
default: string;
|
|
2592
2604
|
type: string;
|
|
2593
2605
|
};
|
|
@@ -3484,7 +3496,7 @@ declare const defaultsWithTypes: {
|
|
|
3484
3496
|
};
|
|
3485
3497
|
};
|
|
3486
3498
|
};
|
|
3487
|
-
|
|
3499
|
+
charges: {
|
|
3488
3500
|
name: {
|
|
3489
3501
|
default: string;
|
|
3490
3502
|
type: string;
|
|
@@ -3860,4 +3872,4 @@ declare const defaultsWithTypes: {
|
|
|
3860
3872
|
};
|
|
3861
3873
|
};
|
|
3862
3874
|
|
|
3863
|
-
export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type EmailInterface, type EngagementInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type
|
|
3875
|
+
export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, type ChargeInterface, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type EmailInterface, type EngagementInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaults, defaultsWithTypes, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentCancellationReason, paymentStatus, prettifyString, productType, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxExempt, toCurrencyValue, userRole, userSource, userStatus, validEmail };
|
package/dist/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ interface UserInterface {
|
|
|
103
103
|
usagesCreated?: UsageInterface[];
|
|
104
104
|
productsCreated?: ProductInterface[];
|
|
105
105
|
subscriptionsCreated?: SubscriptionInterface[];
|
|
106
|
-
paymentsCreated?:
|
|
106
|
+
paymentsCreated?: ChargeInterface[];
|
|
107
107
|
permissions?: PermissionInterface[];
|
|
108
108
|
notifications?: NotificationInterface[];
|
|
109
109
|
avatar?: FileInterface;
|
|
@@ -240,7 +240,7 @@ interface ProductInterface {
|
|
|
240
240
|
price?: PriceInterface;
|
|
241
241
|
client?: ClientInterface;
|
|
242
242
|
subscriptions?: SubscriptionInterface[];
|
|
243
|
-
payments?:
|
|
243
|
+
payments?: ChargeInterface[];
|
|
244
244
|
poolId?: string;
|
|
245
245
|
pool?: PoolInterface;
|
|
246
246
|
organizationId?: string;
|
|
@@ -338,7 +338,7 @@ interface PauseCollectionInterface {
|
|
|
338
338
|
behavior?: string;
|
|
339
339
|
resumesAt?: Date;
|
|
340
340
|
}
|
|
341
|
-
interface
|
|
341
|
+
interface ChargeInterface {
|
|
342
342
|
id?: string;
|
|
343
343
|
createdAt?: Date;
|
|
344
344
|
updatedAt?: Date;
|
|
@@ -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;
|
|
@@ -581,7 +582,7 @@ interface ClientInterface {
|
|
|
581
582
|
tasks?: TaskInterface[];
|
|
582
583
|
products?: ProductInterface[];
|
|
583
584
|
subscriptions?: SubscriptionInterface[];
|
|
584
|
-
payments?:
|
|
585
|
+
payments?: ChargeInterface[];
|
|
585
586
|
contactIds?: string[];
|
|
586
587
|
dealIds?: string[];
|
|
587
588
|
invoiceIds?: string[];
|
|
@@ -757,7 +758,7 @@ interface InvoiceInterface {
|
|
|
757
758
|
poolId?: string | null;
|
|
758
759
|
accountOwnerId?: string;
|
|
759
760
|
dealId?: string;
|
|
760
|
-
payment?:
|
|
761
|
+
payment?: ChargeInterface;
|
|
761
762
|
contents?: ContentInterface[];
|
|
762
763
|
inventories?: InventoryInterface[];
|
|
763
764
|
inventoryIds?: string[];
|
|
@@ -884,7 +885,7 @@ interface PoolInterface {
|
|
|
884
885
|
lead?: LeadInterface;
|
|
885
886
|
product?: ProductInterface;
|
|
886
887
|
subscription?: SubscriptionInterface;
|
|
887
|
-
payment?:
|
|
888
|
+
payment?: ChargeInterface;
|
|
888
889
|
campaign?: CampaignInterface;
|
|
889
890
|
invoice?: InvoiceInterface;
|
|
890
891
|
engagement?: EngagementInterface;
|
|
@@ -1203,6 +1204,7 @@ declare enum paymentStatus {
|
|
|
1203
1204
|
declare enum OrganizationFeatures {
|
|
1204
1205
|
clients = "clients",
|
|
1205
1206
|
tasks = "tasks",
|
|
1207
|
+
products = "products",
|
|
1206
1208
|
inventories = "inventories",
|
|
1207
1209
|
invoices = "invoices",
|
|
1208
1210
|
leads = "leads",
|
|
@@ -1210,9 +1212,10 @@ declare enum OrganizationFeatures {
|
|
|
1210
1212
|
contacts = "contacts",
|
|
1211
1213
|
engagements = "engagements",
|
|
1212
1214
|
campaigns = "campaigns",
|
|
1213
|
-
products = "products",
|
|
1214
1215
|
subscriptions = "subscriptions",
|
|
1215
|
-
|
|
1216
|
+
charges = "charges",
|
|
1217
|
+
paymentMethods = "paymentMethods",
|
|
1218
|
+
disputes = "disputes",
|
|
1216
1219
|
dataPools = "dataPools",
|
|
1217
1220
|
lists = "lists",
|
|
1218
1221
|
reports = "reports"
|
|
@@ -1646,6 +1649,7 @@ declare const constants: {
|
|
|
1646
1649
|
MODEL_APP_MAPPING: {
|
|
1647
1650
|
clients: string;
|
|
1648
1651
|
inventories: string;
|
|
1652
|
+
products: string;
|
|
1649
1653
|
invoices: string;
|
|
1650
1654
|
tasks: string;
|
|
1651
1655
|
campaigns: string;
|
|
@@ -1653,9 +1657,10 @@ declare const constants: {
|
|
|
1653
1657
|
deals: string;
|
|
1654
1658
|
engagements: string;
|
|
1655
1659
|
leads: string;
|
|
1656
|
-
|
|
1657
|
-
products: string;
|
|
1660
|
+
charges: string;
|
|
1658
1661
|
subscriptions: string;
|
|
1662
|
+
paymentMethods: string;
|
|
1663
|
+
disputes: string;
|
|
1659
1664
|
};
|
|
1660
1665
|
NOT_INCLUDED_FIELDS: string[];
|
|
1661
1666
|
GQL_FIELD_TYPE: {
|
|
@@ -1688,14 +1693,16 @@ declare const constants: {
|
|
|
1688
1693
|
campaigns: string;
|
|
1689
1694
|
tasks: string;
|
|
1690
1695
|
clients: string;
|
|
1696
|
+
products: string;
|
|
1691
1697
|
inventories: string;
|
|
1692
1698
|
deals: string;
|
|
1693
1699
|
invoices: string;
|
|
1694
1700
|
contacts: string;
|
|
1695
1701
|
engagements: string;
|
|
1696
|
-
products: string;
|
|
1697
1702
|
subscriptions: string;
|
|
1698
|
-
|
|
1703
|
+
charges: string;
|
|
1704
|
+
paymentMethods: string;
|
|
1705
|
+
disputes: string;
|
|
1699
1706
|
content: string[];
|
|
1700
1707
|
relations: string[];
|
|
1701
1708
|
financials: string[];
|
|
@@ -1717,12 +1724,12 @@ declare const constants: {
|
|
|
1717
1724
|
code: string;
|
|
1718
1725
|
label: string;
|
|
1719
1726
|
phone: string;
|
|
1720
|
-
suggested
|
|
1727
|
+
suggested: boolean;
|
|
1721
1728
|
} | {
|
|
1722
1729
|
code: string;
|
|
1723
1730
|
label: string;
|
|
1724
1731
|
phone: string;
|
|
1725
|
-
suggested
|
|
1732
|
+
suggested?: undefined;
|
|
1726
1733
|
})[];
|
|
1727
1734
|
CURRENCIES: {
|
|
1728
1735
|
aed: string;
|
|
@@ -2115,7 +2122,8 @@ declare const defaults: {
|
|
|
2115
2122
|
description: string;
|
|
2116
2123
|
status: string;
|
|
2117
2124
|
email: string;
|
|
2118
|
-
|
|
2125
|
+
individualName: string;
|
|
2126
|
+
businessName: string;
|
|
2119
2127
|
phone: string;
|
|
2120
2128
|
accountNumber: string;
|
|
2121
2129
|
invoicePrefix: string;
|
|
@@ -2372,7 +2380,7 @@ declare const defaults: {
|
|
|
2372
2380
|
missingPaymentMethod: string;
|
|
2373
2381
|
};
|
|
2374
2382
|
};
|
|
2375
|
-
|
|
2383
|
+
charges: {
|
|
2376
2384
|
name: string;
|
|
2377
2385
|
description: string;
|
|
2378
2386
|
status: string;
|
|
@@ -2587,7 +2595,11 @@ declare const defaultsWithTypes: {
|
|
|
2587
2595
|
default: string;
|
|
2588
2596
|
type: string;
|
|
2589
2597
|
};
|
|
2590
|
-
|
|
2598
|
+
individualName: {
|
|
2599
|
+
default: string;
|
|
2600
|
+
type: string;
|
|
2601
|
+
};
|
|
2602
|
+
businessName: {
|
|
2591
2603
|
default: string;
|
|
2592
2604
|
type: string;
|
|
2593
2605
|
};
|
|
@@ -3484,7 +3496,7 @@ declare const defaultsWithTypes: {
|
|
|
3484
3496
|
};
|
|
3485
3497
|
};
|
|
3486
3498
|
};
|
|
3487
|
-
|
|
3499
|
+
charges: {
|
|
3488
3500
|
name: {
|
|
3489
3501
|
default: string;
|
|
3490
3502
|
type: string;
|
|
@@ -3860,4 +3872,4 @@ declare const defaultsWithTypes: {
|
|
|
3860
3872
|
};
|
|
3861
3873
|
};
|
|
3862
3874
|
|
|
3863
|
-
export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type EmailInterface, type EngagementInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type
|
|
3875
|
+
export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, type ChargeInterface, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type EmailInterface, type EngagementInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaults, defaultsWithTypes, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentCancellationReason, paymentStatus, prettifyString, productType, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxExempt, toCurrencyValue, userRole, userSource, userStatus, validEmail };
|
package/dist/index.js
CHANGED
|
@@ -262,6 +262,7 @@ var paymentStatus = /* @__PURE__ */ ((paymentStatus2) => {
|
|
|
262
262
|
var OrganizationFeatures = /* @__PURE__ */ ((OrganizationFeatures2) => {
|
|
263
263
|
OrganizationFeatures2["clients"] = "clients";
|
|
264
264
|
OrganizationFeatures2["tasks"] = "tasks";
|
|
265
|
+
OrganizationFeatures2["products"] = "products";
|
|
265
266
|
OrganizationFeatures2["inventories"] = "inventories";
|
|
266
267
|
OrganizationFeatures2["invoices"] = "invoices";
|
|
267
268
|
OrganizationFeatures2["leads"] = "leads";
|
|
@@ -269,9 +270,10 @@ var OrganizationFeatures = /* @__PURE__ */ ((OrganizationFeatures2) => {
|
|
|
269
270
|
OrganizationFeatures2["contacts"] = "contacts";
|
|
270
271
|
OrganizationFeatures2["engagements"] = "engagements";
|
|
271
272
|
OrganizationFeatures2["campaigns"] = "campaigns";
|
|
272
|
-
OrganizationFeatures2["products"] = "products";
|
|
273
273
|
OrganizationFeatures2["subscriptions"] = "subscriptions";
|
|
274
|
-
OrganizationFeatures2["
|
|
274
|
+
OrganizationFeatures2["charges"] = "charges";
|
|
275
|
+
OrganizationFeatures2["paymentMethods"] = "paymentMethods";
|
|
276
|
+
OrganizationFeatures2["disputes"] = "disputes";
|
|
275
277
|
OrganizationFeatures2["dataPools"] = "dataPools";
|
|
276
278
|
OrganizationFeatures2["lists"] = "lists";
|
|
277
279
|
OrganizationFeatures2["reports"] = "reports";
|
|
@@ -764,6 +766,7 @@ var constants = {
|
|
|
764
766
|
MODEL_APP_MAPPING: {
|
|
765
767
|
clients: "cms",
|
|
766
768
|
inventories: "cms",
|
|
769
|
+
products: "cms",
|
|
767
770
|
invoices: "cms",
|
|
768
771
|
tasks: "cms",
|
|
769
772
|
campaigns: "crm",
|
|
@@ -771,9 +774,10 @@ var constants = {
|
|
|
771
774
|
deals: "crm",
|
|
772
775
|
engagements: "crm",
|
|
773
776
|
leads: "crm",
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
+
charges: "financials",
|
|
778
|
+
subscriptions: "financials",
|
|
779
|
+
paymentMethods: "financials",
|
|
780
|
+
disputes: "financials"
|
|
777
781
|
},
|
|
778
782
|
NOT_INCLUDED_FIELDS: [
|
|
779
783
|
"id",
|
|
@@ -817,17 +821,19 @@ var constants = {
|
|
|
817
821
|
campaigns: "relations",
|
|
818
822
|
tasks: "content",
|
|
819
823
|
clients: "content",
|
|
824
|
+
products: "content",
|
|
820
825
|
inventories: "content",
|
|
821
826
|
deals: "relations",
|
|
822
827
|
invoices: "content",
|
|
823
828
|
contacts: "relations",
|
|
824
829
|
engagements: "relations",
|
|
825
|
-
products: "financials",
|
|
826
830
|
subscriptions: "financials",
|
|
827
|
-
|
|
828
|
-
|
|
831
|
+
charges: "financials",
|
|
832
|
+
paymentMethods: "financials",
|
|
833
|
+
disputes: "financials",
|
|
834
|
+
content: ["clients", "products", "inventories", "invoices", "tasks"],
|
|
829
835
|
relations: ["deals", "contacts", "engagements", "leads", "campaigns"],
|
|
830
|
-
financials: ["
|
|
836
|
+
financials: ["subscriptions", "charges", "paymentMethods", "disputes"]
|
|
831
837
|
},
|
|
832
838
|
SETTING_TABS: {
|
|
833
839
|
Personal: "Personal",
|
|
@@ -913,6 +919,12 @@ var constants = {
|
|
|
913
919
|
"Wyoming"
|
|
914
920
|
],
|
|
915
921
|
COUNTRIES: [
|
|
922
|
+
{
|
|
923
|
+
code: "US",
|
|
924
|
+
label: "United States Of America",
|
|
925
|
+
phone: "1",
|
|
926
|
+
suggested: true
|
|
927
|
+
},
|
|
916
928
|
{ code: "AD", label: "Andorra", phone: "376" },
|
|
917
929
|
{
|
|
918
930
|
code: "AE",
|
|
@@ -1296,12 +1308,6 @@ var constants = {
|
|
|
1296
1308
|
},
|
|
1297
1309
|
{ code: "UA", label: "Ukraine", phone: "380" },
|
|
1298
1310
|
{ code: "UG", label: "Uganda", phone: "256" },
|
|
1299
|
-
{
|
|
1300
|
-
code: "US",
|
|
1301
|
-
label: "United States Of America",
|
|
1302
|
-
phone: "1",
|
|
1303
|
-
suggested: true
|
|
1304
|
-
},
|
|
1305
1311
|
{ code: "UY", label: "Uruguay", phone: "598" },
|
|
1306
1312
|
{ code: "UZ", label: "Uzbekistan", phone: "998" },
|
|
1307
1313
|
{
|
|
@@ -1862,7 +1868,8 @@ var defaults = {
|
|
|
1862
1868
|
description: "",
|
|
1863
1869
|
status: "Ready",
|
|
1864
1870
|
email: "",
|
|
1865
|
-
|
|
1871
|
+
individualName: "",
|
|
1872
|
+
businessName: "",
|
|
1866
1873
|
phone: "",
|
|
1867
1874
|
accountNumber: "",
|
|
1868
1875
|
invoicePrefix: "",
|
|
@@ -1873,7 +1880,7 @@ var defaults = {
|
|
|
1873
1880
|
industry: "",
|
|
1874
1881
|
annualRevenue: 0,
|
|
1875
1882
|
balance: 0,
|
|
1876
|
-
nextInvoiceSequence:
|
|
1883
|
+
nextInvoiceSequence: 1,
|
|
1877
1884
|
taxExempt: "none",
|
|
1878
1885
|
website: "",
|
|
1879
1886
|
source: "Advertisement",
|
|
@@ -2119,7 +2126,7 @@ var defaults = {
|
|
|
2119
2126
|
missingPaymentMethod: ""
|
|
2120
2127
|
}
|
|
2121
2128
|
},
|
|
2122
|
-
|
|
2129
|
+
charges: {
|
|
2123
2130
|
name: "",
|
|
2124
2131
|
description: "",
|
|
2125
2132
|
status: "Ready",
|
|
@@ -2267,7 +2274,8 @@ var defaultsWithTypes = {
|
|
|
2267
2274
|
description: { default: "", type: "String" },
|
|
2268
2275
|
status: { default: "Ready", type: "String" },
|
|
2269
2276
|
email: { default: "", type: "String" },
|
|
2270
|
-
|
|
2277
|
+
individualName: { default: "", type: "String" },
|
|
2278
|
+
businessName: { default: "", type: "String" },
|
|
2271
2279
|
phone: { default: "", type: "PhoneNumber" },
|
|
2272
2280
|
accountNumber: { default: "", type: "String" },
|
|
2273
2281
|
invoicePrefix: { default: "", type: "String" },
|
|
@@ -2525,7 +2533,7 @@ var defaultsWithTypes = {
|
|
|
2525
2533
|
missingPaymentMethod: { default: "", type: "String" }
|
|
2526
2534
|
}
|
|
2527
2535
|
},
|
|
2528
|
-
|
|
2536
|
+
charges: {
|
|
2529
2537
|
name: { default: "", type: "String" },
|
|
2530
2538
|
description: { default: "", type: "String" },
|
|
2531
2539
|
status: { default: "Ready", type: "String" },
|