shipbob-node-sdk 0.0.4 → 0.0.6

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/types.js ADDED
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookTopic = exports.ReturnAction = exports.PackagingMaterial = exports.PackagingRequirement = void 0;
4
+ var PackagingRequirement;
5
+ (function (PackagingRequirement) {
6
+ // wrong spelling in PDF
7
+ PackagingRequirement[PackagingRequirement["No Requirements"] = 1] = "No Requirements";
8
+ PackagingRequirement[PackagingRequirement["Fragile"] = 2] = "Fragile";
9
+ PackagingRequirement[PackagingRequirement["Is Foldable"] = 3] = "Is Foldable";
10
+ PackagingRequirement[PackagingRequirement["Is Media (Media mail)"] = 4] = "Is Media (Media mail)";
11
+ PackagingRequirement[PackagingRequirement["Is Book"] = 5] = "Is Book";
12
+ PackagingRequirement[PackagingRequirement["Is Poster"] = 6] = "Is Poster";
13
+ PackagingRequirement[PackagingRequirement["Is Apparel"] = 7] = "Is Apparel";
14
+ PackagingRequirement[PackagingRequirement["Is Packaging Material (for custom boxes, marketing inserts, etc)"] = 8] = "Is Packaging Material (for custom boxes, marketing inserts, etc)";
15
+ PackagingRequirement[PackagingRequirement["Ship In Own Container"] = 9] = "Ship In Own Container";
16
+ })(PackagingRequirement || (exports.PackagingRequirement = PackagingRequirement = {}));
17
+ var PackagingMaterial;
18
+ (function (PackagingMaterial) {
19
+ PackagingMaterial[PackagingMaterial["Box"] = 1] = "Box";
20
+ PackagingMaterial[PackagingMaterial["Bubble Mailer"] = 2] = "Bubble Mailer";
21
+ PackagingMaterial[PackagingMaterial["Poly Mailer"] = 3] = "Poly Mailer";
22
+ // no 4 in PDF
23
+ PackagingMaterial[PackagingMaterial["Poster Tube"] = 5] = "Poster Tube";
24
+ PackagingMaterial[PackagingMaterial["Custom Box"] = 6] = "Custom Box";
25
+ PackagingMaterial[PackagingMaterial["Bookfold"] = 7] = "Bookfold";
26
+ PackagingMaterial[PackagingMaterial["Ship In Own Container"] = 8] = "Ship In Own Container";
27
+ PackagingMaterial[PackagingMaterial["Custom Bubble Mailer"] = 9] = "Custom Bubble Mailer";
28
+ PackagingMaterial[PackagingMaterial["Custom Poly Mailer"] = 10] = "Custom Poly Mailer";
29
+ })(PackagingMaterial || (exports.PackagingMaterial = PackagingMaterial = {}));
30
+ /**
31
+ * Restock (1)
32
+ * Quarantine (2)
33
+ * Dispose (3)
34
+ */
35
+ var ReturnAction;
36
+ (function (ReturnAction) {
37
+ /**
38
+ * Restock (1)
39
+ */
40
+ ReturnAction[ReturnAction["Restock"] = 1] = "Restock";
41
+ /**
42
+ * Quarantine (2)
43
+ */
44
+ ReturnAction[ReturnAction["Quarantine"] = 2] = "Quarantine";
45
+ /**
46
+ * Dispose (3)
47
+ */
48
+ ReturnAction[ReturnAction["Dispose"] = 3] = "Dispose";
49
+ })(ReturnAction || (exports.ReturnAction = ReturnAction = {}));
50
+ /**
51
+ * The Topic and SubsciptionId are passed in the HTTP header of the webhook notification, with the names:
52
+ * - shipbob-topic
53
+ * - shipbob-subscription-id
54
+ */
55
+ var WebhookTopic;
56
+ (function (WebhookTopic) {
57
+ /**
58
+ * Sends the full order payload when the label is purchased, printed, and placed on box for carrier pickup.
59
+ * While the tracking # will be available, there may be a delay while carriers scan in the package.
60
+ * If the order is split into multiple shipments, this will fire for each shipment that is part of the order.
61
+ */
62
+ WebhookTopic["OrderShipped"] = "order_shipped";
63
+ /**
64
+ * Sends the full shipment payload when a shipment is delivered by the carrier to the customer.
65
+ * If the order is split into multiple shipments, this will fire for each shipment.
66
+ */
67
+ WebhookTopic["ShipmentDelivered"] = "shipment_delivered";
68
+ /**
69
+ * Sends the full shipment payload when a shipment moves to exception status.
70
+ * Shipments are moved into exception because ShipBob is unable to fulfill the shipment.
71
+ * Shipments are moved into exception status largely because one or more items in the shipment is out of stock.
72
+ */
73
+ WebhookTopic["ShipmentException"] = "shipment_exception";
74
+ /**
75
+ * Sends the full shipment payload when a shipment moves to On-Hold status.
76
+ * Shipments are moved into On-Hold status by ShipBob when we are missing key information like Address or Packaging preferences.
77
+ * Shipments can also be moved to On-Hold in the Merchant Dashboard. On-Hold Shipments will not be fulfilled.
78
+ */
79
+ WebhookTopic["ShipmentOnHold"] = "shipment_onhold";
80
+ /**
81
+ * Sends the full shipment payload when a shipment moves to cancelled status.
82
+ * This webhook subcription will NOT notify you of cancelled split, copied, manual, and excel imported orders.
83
+ * This functionality will be available on this webhook at a later point.
84
+ */
85
+ WebhookTopic["ShipmentCancelled"] = "shipment_cancelled";
86
+ })(WebhookTopic || (exports.WebhookTopic = WebhookTopic = {}));
87
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AA2lCA,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC9B,wBAAwB;IACxB,qFAAqB,CAAA;IACrB,qEAAW,CAAA;IACX,6EAAiB,CAAA;IACjB,iGAA2B,CAAA;IAC3B,qEAAa,CAAA;IACb,yEAAe,CAAA;IACf,2EAAgB,CAAA;IAChB,uLAAsE,CAAA;IACtE,iGAA2B,CAAA;AAC7B,CAAC,EAXW,oBAAoB,oCAApB,oBAAoB,QAW/B;AAED,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,uDAAS,CAAA;IACT,2EAAmB,CAAA;IACnB,uEAAiB,CAAA;IACjB,cAAc;IACd,uEAAiB,CAAA;IACjB,qEAAgB,CAAA;IAChB,iEAAc,CAAA;IACd,2FAA2B,CAAA;IAC3B,yFAA0B,CAAA;IAC1B,sFAAyB,CAAA;AAC3B,CAAC,EAXW,iBAAiB,iCAAjB,iBAAiB,QAW5B;AAED;;;;GAIG;AACH,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB;;OAEG;IACH,qDAAW,CAAA;IACX;;OAEG;IACH,2DAAc,CAAA;IACd;;OAEG;IACH,qDAAW,CAAA;AACb,CAAC,EAbW,YAAY,4BAAZ,YAAY,QAavB;AA4TD;;;;GAIG;AACH,IAAY,YA8BX;AA9BD,WAAY,YAAY;IACtB;;;;OAIG;IACH,8CAA8B,CAAA;IAC9B;;;OAGG;IACH,wDAAwC,CAAA;IACxC;;;;OAIG;IACH,wDAAwC,CAAA;IACxC;;;;OAIG;IACH,kDAAkC,CAAA;IAClC;;;;OAIG;IACH,wDAAwC,CAAA;AAC1C,CAAC,EA9BW,YAAY,4BAAZ,YAAY,QA8BvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shipbob-node-sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "ShipBob API node SDK",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",