@verma-consulting/common-library 0.1.26 → 0.1.28

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 CHANGED
@@ -203,6 +203,246 @@ interface IntegrationInterface {
203
203
  updatedById?: string;
204
204
  createdBy?: UserInterface;
205
205
  updatedBy?: UserInterface;
206
+ stripeAccount?: StripeAccountModelInterface;
207
+ googleWorkspaceAccount?: GoogleWorkspaceAccountInterface;
208
+ microsoftTeamsAccount?: MicrosoftTeamsAccountInterface;
209
+ microsoft365Account?: Microsoft365AccountInterface;
210
+ slackAccount?: SlackAccountInterface;
211
+ fixerIoAccount?: FixerIoAccountInterface;
212
+ chatGptAccount?: ChatGptAccountInterface;
213
+ deepseekAccount?: DeepseekAccountInterface;
214
+ claudeAccount?: ClaudeAccountInterface;
215
+ googleMapsAccount?: GoogleMapsAccountInterface;
216
+ shippoAccount?: ShippoAccountInterface;
217
+ shopifyAccount?: ShopifyAccountInterface;
218
+ }
219
+ interface StripeAccountModelInterface {
220
+ id?: string;
221
+ createdAt?: Date;
222
+ updatedAt?: Date;
223
+ deletedAt?: Date;
224
+ importBridge?: boolean;
225
+ importedAt?: Date;
226
+ exportBridge?: boolean;
227
+ exportedAt?: Date;
228
+ dynamicBridge?: boolean;
229
+ organizationId?: string;
230
+ organization?: OrganizationInterface;
231
+ createdById?: string;
232
+ updatedById?: string;
233
+ createdBy?: UserInterface;
234
+ updatedBy?: UserInterface;
235
+ integrationId?: string;
236
+ integration?: IntegrationInterface;
237
+ }
238
+ interface GoogleWorkspaceAccountInterface {
239
+ id?: string;
240
+ createdAt?: Date;
241
+ updatedAt?: Date;
242
+ deletedAt?: Date;
243
+ importBridge?: boolean;
244
+ importedAt?: Date;
245
+ exportBridge?: boolean;
246
+ exportedAt?: Date;
247
+ dynamicBridge?: boolean;
248
+ organizationId?: string;
249
+ organization?: OrganizationInterface;
250
+ createdById?: string;
251
+ updatedById?: string;
252
+ createdBy?: UserInterface;
253
+ updatedBy?: UserInterface;
254
+ integrationId?: string;
255
+ integration?: IntegrationInterface;
256
+ }
257
+ interface MicrosoftTeamsAccountInterface {
258
+ id?: string;
259
+ createdAt?: Date;
260
+ updatedAt?: Date;
261
+ deletedAt?: Date;
262
+ importBridge?: boolean;
263
+ importedAt?: Date;
264
+ exportBridge?: boolean;
265
+ exportedAt?: Date;
266
+ dynamicBridge?: boolean;
267
+ organizationId?: string;
268
+ organization?: OrganizationInterface;
269
+ createdById?: string;
270
+ updatedById?: string;
271
+ createdBy?: UserInterface;
272
+ updatedBy?: UserInterface;
273
+ integrationId?: string;
274
+ integration?: IntegrationInterface;
275
+ }
276
+ interface Microsoft365AccountInterface {
277
+ id?: string;
278
+ createdAt?: Date;
279
+ updatedAt?: Date;
280
+ deletedAt?: Date;
281
+ importBridge?: boolean;
282
+ importedAt?: Date;
283
+ exportBridge?: boolean;
284
+ exportedAt?: Date;
285
+ dynamicBridge?: boolean;
286
+ organizationId?: string;
287
+ organization?: OrganizationInterface;
288
+ createdById?: string;
289
+ updatedById?: string;
290
+ createdBy?: UserInterface;
291
+ updatedBy?: UserInterface;
292
+ integrationId?: string;
293
+ integration?: IntegrationInterface;
294
+ }
295
+ interface SlackAccountInterface {
296
+ id?: string;
297
+ createdAt?: Date;
298
+ updatedAt?: Date;
299
+ deletedAt?: Date;
300
+ importBridge?: boolean;
301
+ importedAt?: Date;
302
+ exportBridge?: boolean;
303
+ exportedAt?: Date;
304
+ dynamicBridge?: boolean;
305
+ organizationId?: string;
306
+ organization?: OrganizationInterface;
307
+ createdById?: string;
308
+ updatedById?: string;
309
+ createdBy?: UserInterface;
310
+ updatedBy?: UserInterface;
311
+ integrationId?: string;
312
+ integration?: IntegrationInterface;
313
+ }
314
+ interface FixerIoAccountInterface {
315
+ id?: string;
316
+ createdAt?: Date;
317
+ updatedAt?: Date;
318
+ deletedAt?: Date;
319
+ importBridge?: boolean;
320
+ importedAt?: Date;
321
+ exportBridge?: boolean;
322
+ exportedAt?: Date;
323
+ dynamicBridge?: boolean;
324
+ organizationId?: string;
325
+ organization?: OrganizationInterface;
326
+ createdById?: string;
327
+ updatedById?: string;
328
+ createdBy?: UserInterface;
329
+ updatedBy?: UserInterface;
330
+ integrationId?: string;
331
+ integration?: IntegrationInterface;
332
+ }
333
+ interface ChatGptAccountInterface {
334
+ id?: string;
335
+ createdAt?: Date;
336
+ updatedAt?: Date;
337
+ deletedAt?: Date;
338
+ importBridge?: boolean;
339
+ importedAt?: Date;
340
+ exportBridge?: boolean;
341
+ exportedAt?: Date;
342
+ dynamicBridge?: boolean;
343
+ organizationId?: string;
344
+ organization?: OrganizationInterface;
345
+ createdById?: string;
346
+ updatedById?: string;
347
+ createdBy?: UserInterface;
348
+ updatedBy?: UserInterface;
349
+ integrationId?: string;
350
+ integration?: IntegrationInterface;
351
+ }
352
+ interface DeepseekAccountInterface {
353
+ id?: string;
354
+ createdAt?: Date;
355
+ updatedAt?: Date;
356
+ deletedAt?: Date;
357
+ importBridge?: boolean;
358
+ importedAt?: Date;
359
+ exportBridge?: boolean;
360
+ exportedAt?: Date;
361
+ dynamicBridge?: boolean;
362
+ organizationId?: string;
363
+ organization?: OrganizationInterface;
364
+ createdById?: string;
365
+ updatedById?: string;
366
+ createdBy?: UserInterface;
367
+ updatedBy?: UserInterface;
368
+ integrationId?: string;
369
+ integration?: IntegrationInterface;
370
+ }
371
+ interface ClaudeAccountInterface {
372
+ id?: string;
373
+ createdAt?: Date;
374
+ updatedAt?: Date;
375
+ deletedAt?: Date;
376
+ importBridge?: boolean;
377
+ importedAt?: Date;
378
+ exportBridge?: boolean;
379
+ exportedAt?: Date;
380
+ dynamicBridge?: boolean;
381
+ organizationId?: string;
382
+ organization?: OrganizationInterface;
383
+ createdById?: string;
384
+ updatedById?: string;
385
+ createdBy?: UserInterface;
386
+ updatedBy?: UserInterface;
387
+ integrationId?: string;
388
+ integration?: IntegrationInterface;
389
+ }
390
+ interface GoogleMapsAccountInterface {
391
+ id?: string;
392
+ createdAt?: Date;
393
+ updatedAt?: Date;
394
+ deletedAt?: Date;
395
+ importBridge?: boolean;
396
+ importedAt?: Date;
397
+ exportBridge?: boolean;
398
+ exportedAt?: Date;
399
+ dynamicBridge?: boolean;
400
+ organizationId?: string;
401
+ organization?: OrganizationInterface;
402
+ createdById?: string;
403
+ updatedById?: string;
404
+ createdBy?: UserInterface;
405
+ updatedBy?: UserInterface;
406
+ integrationId?: string;
407
+ integration?: IntegrationInterface;
408
+ }
409
+ interface ShippoAccountInterface {
410
+ id?: string;
411
+ createdAt?: Date;
412
+ updatedAt?: Date;
413
+ deletedAt?: Date;
414
+ importBridge?: boolean;
415
+ importedAt?: Date;
416
+ exportBridge?: boolean;
417
+ exportedAt?: Date;
418
+ dynamicBridge?: boolean;
419
+ organizationId?: string;
420
+ organization?: OrganizationInterface;
421
+ createdById?: string;
422
+ updatedById?: string;
423
+ createdBy?: UserInterface;
424
+ updatedBy?: UserInterface;
425
+ integrationId?: string;
426
+ integration?: IntegrationInterface;
427
+ }
428
+ interface ShopifyAccountInterface {
429
+ id?: string;
430
+ createdAt?: Date;
431
+ updatedAt?: Date;
432
+ deletedAt?: Date;
433
+ importBridge?: boolean;
434
+ importedAt?: Date;
435
+ exportBridge?: boolean;
436
+ exportedAt?: Date;
437
+ dynamicBridge?: boolean;
438
+ organizationId?: string;
439
+ organization?: OrganizationInterface;
440
+ createdById?: string;
441
+ updatedById?: string;
442
+ createdBy?: UserInterface;
443
+ updatedBy?: UserInterface;
444
+ integrationId?: string;
445
+ integration?: IntegrationInterface;
206
446
  }
207
447
  interface PermissionInterface {
208
448
  id?: string;
@@ -1357,7 +1597,7 @@ interface ShippoRatesResponseInterface {
1357
1597
  error?: any;
1358
1598
  }
1359
1599
  interface RatesOptionsInterface {
1360
- CarrierAccountInterfaces?: string[];
1600
+ carrierAccounts?: string[];
1361
1601
  }
1362
1602
  interface LabelOptionsInterface {
1363
1603
  labelFormat?: "PNG" | "PDF" | "ZPLII" | "EPL2";
@@ -1399,7 +1639,7 @@ interface TrackingInfoInterface {
1399
1639
  zip: string;
1400
1640
  country: string;
1401
1641
  };
1402
- TrackingHistoryInterface: TrackingHistoryInterface[];
1642
+ trackingHistory: TrackingHistoryInterface[];
1403
1643
  estimatedDelivery?: string;
1404
1644
  }
1405
1645
  interface ShippoTrackingResponseInterface {
@@ -1433,7 +1673,7 @@ interface BatchShipmentInterface {
1433
1673
  fromAddress: string | AddressInterface;
1434
1674
  toAddress: string | AddressInterface;
1435
1675
  parcels: Array<string | ParcelInputInterface>;
1436
- CarrierAccountInterface?: string;
1676
+ carrierAccounts?: string;
1437
1677
  serviceLevelToken?: string;
1438
1678
  }
1439
1679
  interface ShippoBatchResponseInterface {
@@ -1450,7 +1690,7 @@ interface CarrierAccountInterface {
1450
1690
  }
1451
1691
  interface CarrierAccountResponseInterface {
1452
1692
  success: boolean;
1453
- CarrierAccountInterfaces?: CarrierAccountInterface[];
1693
+ carrierAccounts?: CarrierAccountInterface[];
1454
1694
  error?: any;
1455
1695
  }
1456
1696
  interface ServiceLevelsResponseInterface {
@@ -1532,6 +1772,13 @@ declare enum userStatus {
1532
1772
  Active = "Active",
1533
1773
  Inactive = "Inactive"
1534
1774
  }
1775
+ declare enum addressType {
1776
+ unknown = "unknown",
1777
+ residential = "residential",
1778
+ commercial = "commercial",
1779
+ po_box = "po_box",
1780
+ military = "military"
1781
+ }
1535
1782
  declare enum subscriptionCancellationReason {
1536
1783
  CustomerService = "customer_service",
1537
1784
  LowQuality = "low_quality",
@@ -3107,15 +3354,94 @@ declare const defaults: {
3107
3354
  title: string;
3108
3355
  description: string;
3109
3356
  category: string;
3357
+ type: string;
3110
3358
  key: string;
3111
3359
  secret: string;
3112
3360
  logo: string;
3113
- clientEmail: string;
3114
- customerId: string;
3115
- channelId: string;
3116
3361
  active: boolean;
3362
+ };
3363
+ stripeAccount: {
3364
+ importBridge: boolean;
3365
+ importedAt: null;
3366
+ exportBridge: boolean;
3367
+ exportedAt: null;
3368
+ dynamicBridge: boolean;
3369
+ };
3370
+ googleWorkspaceAccount: {
3371
+ importBridge: boolean;
3372
+ importedAt: null;
3373
+ exportBridge: boolean;
3374
+ exportedAt: null;
3375
+ dynamicBridge: boolean;
3376
+ };
3377
+ microsoftTeamsAccount: {
3378
+ importBridge: boolean;
3379
+ importedAt: null;
3380
+ exportBridge: boolean;
3381
+ exportedAt: null;
3382
+ dynamicBridge: boolean;
3383
+ };
3384
+ microsoft365Account: {
3385
+ importBridge: boolean;
3386
+ importedAt: null;
3387
+ exportBridge: boolean;
3388
+ exportedAt: null;
3389
+ dynamicBridge: boolean;
3390
+ };
3391
+ slackAccount: {
3392
+ importBridge: boolean;
3393
+ importedAt: null;
3394
+ exportBridge: boolean;
3395
+ exportedAt: null;
3396
+ dynamicBridge: boolean;
3397
+ };
3398
+ fixerIoAccount: {
3399
+ importBridge: boolean;
3400
+ importedAt: null;
3401
+ exportBridge: boolean;
3402
+ exportedAt: null;
3403
+ dynamicBridge: boolean;
3404
+ };
3405
+ chatGptAccount: {
3406
+ importBridge: boolean;
3407
+ importedAt: null;
3408
+ exportBridge: boolean;
3409
+ exportedAt: null;
3410
+ dynamicBridge: boolean;
3411
+ };
3412
+ deepseekAccount: {
3413
+ importBridge: boolean;
3414
+ importedAt: null;
3415
+ exportBridge: boolean;
3416
+ exportedAt: null;
3417
+ dynamicBridge: boolean;
3418
+ };
3419
+ claudeAccount: {
3420
+ importBridge: boolean;
3421
+ importedAt: null;
3422
+ exportBridge: boolean;
3423
+ exportedAt: null;
3424
+ dynamicBridge: boolean;
3425
+ };
3426
+ googleMapsAccount: {
3427
+ importBridge: boolean;
3428
+ importedAt: null;
3429
+ exportBridge: boolean;
3430
+ exportedAt: null;
3431
+ dynamicBridge: boolean;
3432
+ };
3433
+ shippoAccount: {
3434
+ importBridge: boolean;
3435
+ importedAt: null;
3436
+ exportBridge: boolean;
3437
+ exportedAt: null;
3438
+ dynamicBridge: boolean;
3439
+ };
3440
+ shopifyAccount: {
3117
3441
  importBridge: boolean;
3442
+ importedAt: null;
3118
3443
  exportBridge: boolean;
3444
+ exportedAt: null;
3119
3445
  dynamicBridge: boolean;
3120
3446
  };
3121
3447
  operations: {
@@ -3646,4 +3972,4 @@ declare const defaultTypes: {
3646
3972
  };
3647
3973
  };
3648
3974
 
3649
- export { type ActivityInterface, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BatchShipmentInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, type CarrierAccountInterface, type CarrierAccountResponseInterface, type CarrierMappingInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type CustomsItemInterface, type DealInterface, DealType, DeviceNotification, type DisputeInterface, type EmailInterface, type EngagementInterface, type EvidenceDetailsInterface, type EvidenceInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, type LabelOptionsInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, type OrderAddressInterface, type OrderInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type ParcelInputInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RatesOptionsInterface, type RefundInterface, type RefundResponseInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ServiceLevelsResponseInterface, type ShippingInterface, type ShippingRateInterface, type ShippingTransactionInterface, type ShippoAddressInterface, type ShippoAddressResponseInterface, type ShippoBatchResponseInterface, type ShippoCustomsDeclarationInputInterface, type ShippoCustomsResponseInterface, type ShippoParcelInterface, type ShippoParcelResponseInterface, type ShippoRatesResponseInterface, type ShippoTrackingResponseInterface, type ShippoTransactionResponseInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type TrackingHistoryInterface, type TrackingInfoInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaultTypes, defaults, disputeReason, disputeStatus, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, userRole, userSource, userStatus, validEmail };
3975
+ export { type ActivityInterface, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BatchShipmentInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, type CarrierAccountInterface, type CarrierAccountResponseInterface, type CarrierMappingInterface, CategoryType, ChartType, type ChatGptAccountInterface, type ChatInterface, type ClaudeAccountInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type CustomsItemInterface, type DealInterface, DealType, type DeepseekAccountInterface, DeviceNotification, type DisputeInterface, type EmailInterface, type EngagementInterface, type EvidenceDetailsInterface, type EvidenceInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, type FixerIoAccountInterface, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type GoogleMapsAccountInterface, type GoogleWorkspaceAccountInterface, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, type LabelOptionsInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type Microsoft365AccountInterface, type MicrosoftTeamsAccountInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, type OrderAddressInterface, type OrderInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type ParcelInputInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RatesOptionsInterface, type RefundInterface, type RefundResponseInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ServiceLevelsResponseInterface, type ShippingInterface, type ShippingRateInterface, type ShippingTransactionInterface, type ShippoAccountInterface, type ShippoAddressInterface, type ShippoAddressResponseInterface, type ShippoBatchResponseInterface, type ShippoCustomsDeclarationInputInterface, type ShippoCustomsResponseInterface, type ShippoParcelInterface, type ShippoParcelResponseInterface, type ShippoRatesResponseInterface, type ShippoTrackingResponseInterface, type ShippoTransactionResponseInterface, type ShopifyAccountInterface, type SlackAccountInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeAccountModelInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type TrackingHistoryInterface, type TrackingInfoInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, addressType, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaultTypes, defaults, disputeReason, disputeStatus, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, userRole, userSource, userStatus, validEmail };