digital-tools 2.0.2 → 2.1.1

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 (93) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +3 -4
  3. package/src/define.js +267 -0
  4. package/src/entities/advertising.js +999 -0
  5. package/src/entities/ai.js +756 -0
  6. package/src/entities/analytics.js +1588 -0
  7. package/src/entities/automation.js +601 -0
  8. package/src/entities/communication.js +1150 -0
  9. package/src/entities/crm.js +1386 -0
  10. package/src/entities/design.js +546 -0
  11. package/src/entities/development.js +2212 -0
  12. package/src/entities/document.js +874 -0
  13. package/src/entities/ecommerce.js +1429 -0
  14. package/src/entities/experiment.js +1039 -0
  15. package/src/entities/finance.js +3478 -0
  16. package/src/entities/forms.js +1892 -0
  17. package/src/entities/hr.js +661 -0
  18. package/src/entities/identity.js +997 -0
  19. package/src/entities/index.js +282 -0
  20. package/src/entities/infrastructure.js +1153 -0
  21. package/src/entities/knowledge.js +1438 -0
  22. package/src/entities/marketing.js +1610 -0
  23. package/src/entities/media.js +1634 -0
  24. package/src/entities/notification.js +1199 -0
  25. package/src/entities/presentation.js +1274 -0
  26. package/src/entities/productivity.js +1317 -0
  27. package/src/entities/project-management.js +1136 -0
  28. package/src/entities/recruiting.js +736 -0
  29. package/src/entities/shipping.js +509 -0
  30. package/src/entities/signature.js +1102 -0
  31. package/src/entities/site.js +222 -0
  32. package/src/entities/spreadsheet.js +1341 -0
  33. package/src/entities/storage.js +1198 -0
  34. package/src/entities/support.js +1166 -0
  35. package/src/entities/video-conferencing.js +1750 -0
  36. package/src/entities/video.js +950 -0
  37. package/src/entities.js +1663 -0
  38. package/src/index.js +74 -0
  39. package/src/providers/analytics/index.js +17 -0
  40. package/src/providers/analytics/mixpanel.js +255 -0
  41. package/src/providers/calendar/cal-com.js +303 -0
  42. package/src/providers/calendar/google-calendar.js +335 -0
  43. package/src/providers/calendar/index.js +20 -0
  44. package/src/providers/crm/hubspot.js +566 -0
  45. package/src/providers/crm/index.js +17 -0
  46. package/src/providers/development/github.js +472 -0
  47. package/src/providers/development/index.js +17 -0
  48. package/src/providers/ecommerce/index.js +17 -0
  49. package/src/providers/ecommerce/shopify.js +378 -0
  50. package/src/providers/email/index.js +20 -0
  51. package/src/providers/email/resend.js +258 -0
  52. package/src/providers/email/sendgrid.js +161 -0
  53. package/src/providers/finance/index.js +17 -0
  54. package/src/providers/finance/stripe.js +549 -0
  55. package/src/providers/forms/index.js +17 -0
  56. package/src/providers/forms/typeform.js +500 -0
  57. package/src/providers/index.js +123 -0
  58. package/src/providers/knowledge/index.js +17 -0
  59. package/src/providers/knowledge/notion.js +389 -0
  60. package/src/providers/marketing/index.js +17 -0
  61. package/src/providers/marketing/mailchimp.js +443 -0
  62. package/src/providers/media/cloudinary.js +318 -0
  63. package/src/providers/media/index.js +17 -0
  64. package/src/providers/messaging/index.js +20 -0
  65. package/src/providers/messaging/slack.js +393 -0
  66. package/src/providers/messaging/twilio-sms.js +249 -0
  67. package/src/providers/project-management/index.js +17 -0
  68. package/src/providers/project-management/linear.js +575 -0
  69. package/src/providers/registry.js +86 -0
  70. package/src/providers/spreadsheet/google-sheets.js +375 -0
  71. package/src/providers/spreadsheet/index.js +20 -0
  72. package/src/providers/spreadsheet/xlsx.js +423 -0
  73. package/src/providers/storage/index.js +24 -0
  74. package/src/providers/storage/s3.js +419 -0
  75. package/src/providers/support/index.js +17 -0
  76. package/src/providers/support/zendesk.js +373 -0
  77. package/src/providers/tasks/index.js +17 -0
  78. package/src/providers/tasks/todoist.js +286 -0
  79. package/src/providers/types.js +9 -0
  80. package/src/providers/video-conferencing/google-meet.js +286 -0
  81. package/src/providers/video-conferencing/index.js +31 -0
  82. package/src/providers/video-conferencing/jitsi.js +254 -0
  83. package/src/providers/video-conferencing/teams.js +270 -0
  84. package/src/providers/video-conferencing/zoom.js +332 -0
  85. package/src/registry.js +128 -0
  86. package/src/tools/communication.js +184 -0
  87. package/src/tools/data.js +205 -0
  88. package/src/tools/index.js +11 -0
  89. package/src/tools/web.js +137 -0
  90. package/src/types.js +10 -0
  91. package/test/define.test.js +306 -0
  92. package/test/registry.test.js +357 -0
  93. package/test/tools.test.js +363 -0
@@ -0,0 +1,509 @@
1
+ /**
2
+ * Shipping Entity Types (Nouns)
3
+ *
4
+ * Shipping and logistics entities for shipments, packages,
5
+ * carriers, tracking, and fulfillment.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ // =============================================================================
10
+ // Shipment
11
+ // =============================================================================
12
+ /**
13
+ * Shipment entity
14
+ *
15
+ * Represents a shipment of one or more packages.
16
+ */
17
+ export const Shipment = {
18
+ singular: 'shipment',
19
+ plural: 'shipments',
20
+ description: 'A shipment of one or more packages',
21
+ properties: {
22
+ // Identity
23
+ trackingNumber: {
24
+ type: 'string',
25
+ description: 'Master tracking number',
26
+ },
27
+ referenceNumber: {
28
+ type: 'string',
29
+ optional: true,
30
+ description: 'Internal reference number',
31
+ },
32
+ // Status
33
+ status: {
34
+ type: 'string',
35
+ description: 'Shipment status',
36
+ examples: ['pending', 'processing', 'shipped', 'in-transit', 'out-for-delivery', 'delivered', 'failed', 'returned'],
37
+ },
38
+ // Carrier
39
+ carrier: {
40
+ type: 'string',
41
+ description: 'Carrier name',
42
+ examples: ['ups', 'fedex', 'usps', 'dhl', 'amazon'],
43
+ },
44
+ service: {
45
+ type: 'string',
46
+ optional: true,
47
+ description: 'Service level',
48
+ examples: ['ground', 'express', '2-day', 'overnight', 'freight'],
49
+ },
50
+ // Origin
51
+ originAddress: {
52
+ type: 'json',
53
+ description: 'Origin address',
54
+ },
55
+ originName: {
56
+ type: 'string',
57
+ optional: true,
58
+ description: 'Origin contact name',
59
+ },
60
+ // Destination
61
+ destinationAddress: {
62
+ type: 'json',
63
+ description: 'Destination address',
64
+ },
65
+ destinationName: {
66
+ type: 'string',
67
+ optional: true,
68
+ description: 'Recipient name',
69
+ },
70
+ destinationPhone: {
71
+ type: 'string',
72
+ optional: true,
73
+ description: 'Recipient phone',
74
+ },
75
+ destinationEmail: {
76
+ type: 'string',
77
+ optional: true,
78
+ description: 'Recipient email',
79
+ },
80
+ // Dates
81
+ shipDate: {
82
+ type: 'datetime',
83
+ optional: true,
84
+ description: 'Ship date',
85
+ },
86
+ estimatedDelivery: {
87
+ type: 'datetime',
88
+ optional: true,
89
+ description: 'Estimated delivery date',
90
+ },
91
+ actualDelivery: {
92
+ type: 'datetime',
93
+ optional: true,
94
+ description: 'Actual delivery date',
95
+ },
96
+ // Cost
97
+ shippingCost: {
98
+ type: 'number',
99
+ optional: true,
100
+ description: 'Shipping cost',
101
+ },
102
+ insuranceValue: {
103
+ type: 'number',
104
+ optional: true,
105
+ description: 'Declared value for insurance',
106
+ },
107
+ currency: {
108
+ type: 'string',
109
+ optional: true,
110
+ description: 'Currency',
111
+ },
112
+ // Options
113
+ signatureRequired: {
114
+ type: 'boolean',
115
+ optional: true,
116
+ description: 'Signature required',
117
+ },
118
+ saturdayDelivery: {
119
+ type: 'boolean',
120
+ optional: true,
121
+ description: 'Saturday delivery',
122
+ },
123
+ // Documents
124
+ labelUrl: {
125
+ type: 'url',
126
+ optional: true,
127
+ description: 'Shipping label URL',
128
+ },
129
+ commercialInvoiceUrl: {
130
+ type: 'url',
131
+ optional: true,
132
+ description: 'Commercial invoice URL',
133
+ },
134
+ },
135
+ relationships: {
136
+ packages: {
137
+ type: 'Package[]',
138
+ description: 'Packages in shipment',
139
+ },
140
+ order: {
141
+ type: 'Order',
142
+ required: false,
143
+ description: 'Related order',
144
+ },
145
+ events: {
146
+ type: 'TrackingEvent[]',
147
+ description: 'Tracking events',
148
+ },
149
+ },
150
+ actions: [
151
+ 'create',
152
+ 'update',
153
+ 'ship',
154
+ 'cancel',
155
+ 'track',
156
+ 'requestReturn',
157
+ ],
158
+ events: [
159
+ 'created',
160
+ 'shipped',
161
+ 'inTransit',
162
+ 'outForDelivery',
163
+ 'delivered',
164
+ 'failed',
165
+ 'returned',
166
+ 'cancelled',
167
+ ],
168
+ };
169
+ // =============================================================================
170
+ // Package
171
+ // =============================================================================
172
+ /**
173
+ * Package entity
174
+ *
175
+ * Represents a single package within a shipment.
176
+ */
177
+ export const Package = {
178
+ singular: 'package',
179
+ plural: 'packages',
180
+ description: 'A single package within a shipment',
181
+ properties: {
182
+ // Identity
183
+ trackingNumber: {
184
+ type: 'string',
185
+ optional: true,
186
+ description: 'Package tracking number',
187
+ },
188
+ // Dimensions
189
+ weight: {
190
+ type: 'number',
191
+ optional: true,
192
+ description: 'Weight',
193
+ },
194
+ weightUnit: {
195
+ type: 'string',
196
+ optional: true,
197
+ description: 'Weight unit',
198
+ examples: ['lb', 'oz', 'kg', 'g'],
199
+ },
200
+ length: {
201
+ type: 'number',
202
+ optional: true,
203
+ description: 'Length',
204
+ },
205
+ width: {
206
+ type: 'number',
207
+ optional: true,
208
+ description: 'Width',
209
+ },
210
+ height: {
211
+ type: 'number',
212
+ optional: true,
213
+ description: 'Height',
214
+ },
215
+ dimensionUnit: {
216
+ type: 'string',
217
+ optional: true,
218
+ description: 'Dimension unit',
219
+ examples: ['in', 'cm'],
220
+ },
221
+ // Packaging
222
+ packageType: {
223
+ type: 'string',
224
+ optional: true,
225
+ description: 'Package type',
226
+ examples: ['box', 'envelope', 'tube', 'pallet', 'custom'],
227
+ },
228
+ // Contents
229
+ contents: {
230
+ type: 'string',
231
+ optional: true,
232
+ description: 'Package contents description',
233
+ },
234
+ declaredValue: {
235
+ type: 'number',
236
+ optional: true,
237
+ description: 'Declared value',
238
+ },
239
+ // Status
240
+ status: {
241
+ type: 'string',
242
+ optional: true,
243
+ description: 'Package status',
244
+ },
245
+ },
246
+ relationships: {
247
+ shipment: {
248
+ type: 'Shipment',
249
+ description: 'Parent shipment',
250
+ },
251
+ items: {
252
+ type: 'OrderItem[]',
253
+ description: 'Items in package',
254
+ },
255
+ },
256
+ actions: [
257
+ 'create',
258
+ 'update',
259
+ 'weigh',
260
+ 'measure',
261
+ ],
262
+ events: [
263
+ 'created',
264
+ 'updated',
265
+ 'weighed',
266
+ 'measured',
267
+ ],
268
+ };
269
+ // =============================================================================
270
+ // TrackingEvent
271
+ // =============================================================================
272
+ /**
273
+ * TrackingEvent entity
274
+ *
275
+ * Represents a tracking event/scan.
276
+ */
277
+ export const TrackingEvent = {
278
+ singular: 'tracking-event',
279
+ plural: 'tracking-events',
280
+ description: 'A tracking event or scan',
281
+ properties: {
282
+ // Status
283
+ status: {
284
+ type: 'string',
285
+ description: 'Event status',
286
+ examples: ['picked-up', 'in-transit', 'arrived', 'departed', 'out-for-delivery', 'delivered', 'exception'],
287
+ },
288
+ statusDetail: {
289
+ type: 'string',
290
+ optional: true,
291
+ description: 'Detailed status',
292
+ },
293
+ message: {
294
+ type: 'string',
295
+ optional: true,
296
+ description: 'Event message',
297
+ },
298
+ // Location
299
+ location: {
300
+ type: 'string',
301
+ optional: true,
302
+ description: 'Event location',
303
+ },
304
+ city: {
305
+ type: 'string',
306
+ optional: true,
307
+ description: 'City',
308
+ },
309
+ state: {
310
+ type: 'string',
311
+ optional: true,
312
+ description: 'State/province',
313
+ },
314
+ country: {
315
+ type: 'string',
316
+ optional: true,
317
+ description: 'Country',
318
+ },
319
+ postalCode: {
320
+ type: 'string',
321
+ optional: true,
322
+ description: 'Postal code',
323
+ },
324
+ // Time
325
+ timestamp: {
326
+ type: 'datetime',
327
+ description: 'Event timestamp',
328
+ },
329
+ // Delivery details
330
+ signedBy: {
331
+ type: 'string',
332
+ optional: true,
333
+ description: 'Signature name',
334
+ },
335
+ proofOfDeliveryUrl: {
336
+ type: 'url',
337
+ optional: true,
338
+ description: 'Proof of delivery image URL',
339
+ },
340
+ },
341
+ relationships: {
342
+ shipment: {
343
+ type: 'Shipment',
344
+ description: 'Related shipment',
345
+ },
346
+ package: {
347
+ type: 'Package',
348
+ required: false,
349
+ description: 'Related package',
350
+ },
351
+ },
352
+ actions: ['create'],
353
+ events: ['created'],
354
+ };
355
+ // =============================================================================
356
+ // Carrier
357
+ // =============================================================================
358
+ /**
359
+ * Carrier entity
360
+ *
361
+ * Represents a shipping carrier configuration.
362
+ */
363
+ export const Carrier = {
364
+ singular: 'carrier',
365
+ plural: 'carriers',
366
+ description: 'A shipping carrier configuration',
367
+ properties: {
368
+ // Identity
369
+ name: {
370
+ type: 'string',
371
+ description: 'Carrier name',
372
+ },
373
+ code: {
374
+ type: 'string',
375
+ description: 'Carrier code',
376
+ examples: ['ups', 'fedex', 'usps', 'dhl'],
377
+ },
378
+ // Status
379
+ isActive: {
380
+ type: 'boolean',
381
+ description: 'Whether carrier is active',
382
+ },
383
+ // Account
384
+ accountNumber: {
385
+ type: 'string',
386
+ optional: true,
387
+ description: 'Account number',
388
+ },
389
+ // Services
390
+ services: {
391
+ type: 'json',
392
+ optional: true,
393
+ description: 'Available services',
394
+ },
395
+ // Settings
396
+ defaultService: {
397
+ type: 'string',
398
+ optional: true,
399
+ description: 'Default service',
400
+ },
401
+ defaultPackageType: {
402
+ type: 'string',
403
+ optional: true,
404
+ description: 'Default package type',
405
+ },
406
+ },
407
+ relationships: {
408
+ shipments: {
409
+ type: 'Shipment[]',
410
+ description: 'Shipments using this carrier',
411
+ },
412
+ },
413
+ actions: [
414
+ 'create',
415
+ 'update',
416
+ 'activate',
417
+ 'deactivate',
418
+ 'getRates',
419
+ ],
420
+ events: [
421
+ 'created',
422
+ 'updated',
423
+ 'activated',
424
+ 'deactivated',
425
+ ],
426
+ };
427
+ // =============================================================================
428
+ // Rate
429
+ // =============================================================================
430
+ /**
431
+ * Rate entity
432
+ *
433
+ * Represents a shipping rate quote.
434
+ */
435
+ export const Rate = {
436
+ singular: 'rate',
437
+ plural: 'rates',
438
+ description: 'A shipping rate quote',
439
+ properties: {
440
+ // Carrier/Service
441
+ carrier: {
442
+ type: 'string',
443
+ description: 'Carrier code',
444
+ },
445
+ service: {
446
+ type: 'string',
447
+ description: 'Service name',
448
+ },
449
+ serviceCode: {
450
+ type: 'string',
451
+ optional: true,
452
+ description: 'Service code',
453
+ },
454
+ // Cost
455
+ rate: {
456
+ type: 'number',
457
+ description: 'Shipping rate',
458
+ },
459
+ currency: {
460
+ type: 'string',
461
+ description: 'Currency',
462
+ },
463
+ retailRate: {
464
+ type: 'number',
465
+ optional: true,
466
+ description: 'Retail rate',
467
+ },
468
+ // Delivery
469
+ deliveryDays: {
470
+ type: 'number',
471
+ optional: true,
472
+ description: 'Estimated delivery days',
473
+ },
474
+ estimatedDelivery: {
475
+ type: 'datetime',
476
+ optional: true,
477
+ description: 'Estimated delivery date',
478
+ },
479
+ guaranteed: {
480
+ type: 'boolean',
481
+ optional: true,
482
+ description: 'Delivery guaranteed',
483
+ },
484
+ // Validity
485
+ expiresAt: {
486
+ type: 'datetime',
487
+ optional: true,
488
+ description: 'Quote expiration',
489
+ },
490
+ },
491
+ relationships: {},
492
+ actions: ['get', 'select'],
493
+ events: ['retrieved', 'selected'],
494
+ };
495
+ // =============================================================================
496
+ // Exports
497
+ // =============================================================================
498
+ export const ShippingEntities = {
499
+ Shipment,
500
+ Package,
501
+ TrackingEvent,
502
+ Carrier,
503
+ Rate,
504
+ };
505
+ export const ShippingCategories = {
506
+ shipments: ['Shipment', 'Package'],
507
+ tracking: ['TrackingEvent'],
508
+ carriers: ['Carrier', 'Rate'],
509
+ };