@gobolt/models 1.1.24
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/README.md +10 -0
- package/dist/merchant/Shop.d.ts +4 -0
- package/dist/merchant/Shop.js +25 -0
- package/dist/merchant/Shop.js.map +1 -0
- package/dist/merchant/address/address.d.ts +17 -0
- package/dist/merchant/address/address.js +78 -0
- package/dist/merchant/address/address.js.map +1 -0
- package/dist/merchant/address/location.d.ts +4 -0
- package/dist/merchant/address/location.js +25 -0
- package/dist/merchant/address/location.js.map +1 -0
- package/dist/merchant/address/recipient.d.ts +5 -0
- package/dist/merchant/address/recipient.js +29 -0
- package/dist/merchant/address/recipient.js.map +1 -0
- package/dist/merchant/constraints/datedDeliveryConstraint.d.ts +8 -0
- package/dist/merchant/constraints/datedDeliveryConstraint.js +41 -0
- package/dist/merchant/constraints/datedDeliveryConstraint.js.map +1 -0
- package/dist/merchant/constraints/datedPickupConstraint.d.ts +4 -0
- package/dist/merchant/constraints/datedPickupConstraint.js +25 -0
- package/dist/merchant/constraints/datedPickupConstraint.js.map +1 -0
- package/dist/merchant/constraints/deliveryConstraint.d.ts +6 -0
- package/dist/merchant/constraints/deliveryConstraint.js +32 -0
- package/dist/merchant/constraints/deliveryConstraint.js.map +1 -0
- package/dist/merchant/constraints/deliveryConstraintsByWeek.d.ts +6 -0
- package/dist/merchant/constraints/deliveryConstraintsByWeek.js +28 -0
- package/dist/merchant/constraints/deliveryConstraintsByWeek.js.map +1 -0
- package/dist/merchant/constraints/pickupConstraint.d.ts +5 -0
- package/dist/merchant/constraints/pickupConstraint.js +28 -0
- package/dist/merchant/constraints/pickupConstraint.js.map +1 -0
- package/dist/merchant/constraints/pickupConstraintsByWeek.d.ts +6 -0
- package/dist/merchant/constraints/pickupConstraintsByWeek.js +28 -0
- package/dist/merchant/constraints/pickupConstraintsByWeek.js.map +1 -0
- package/dist/merchant/constraints/timeWindow.d.ts +4 -0
- package/dist/merchant/constraints/timeWindow.js +28 -0
- package/dist/merchant/constraints/timeWindow.js.map +1 -0
- package/dist/merchant/constraints/weekdayDeliveryConstraint.d.ts +4 -0
- package/dist/merchant/constraints/weekdayDeliveryConstraint.js +25 -0
- package/dist/merchant/constraints/weekdayDeliveryConstraint.js.map +1 -0
- package/dist/merchant/constraints/weekdayPickupConstraint.d.ts +4 -0
- package/dist/merchant/constraints/weekdayPickupConstraint.js +25 -0
- package/dist/merchant/constraints/weekdayPickupConstraint.js.map +1 -0
- package/dist/merchant/customNotifications.d.ts +4 -0
- package/dist/merchant/customNotifications.js +25 -0
- package/dist/merchant/customNotifications.js.map +1 -0
- package/dist/merchant/emailNotifications.d.ts +6 -0
- package/dist/merchant/emailNotifications.js +33 -0
- package/dist/merchant/emailNotifications.js.map +1 -0
- package/dist/merchant/integrationInfo.d.ts +10 -0
- package/dist/merchant/integrationInfo.js +52 -0
- package/dist/merchant/integrationInfo.js.map +1 -0
- package/dist/merchant/labelingFormatType.d.ts +10 -0
- package/dist/merchant/labelingFormatType.js +15 -0
- package/dist/merchant/labelingFormatType.js.map +1 -0
- package/dist/merchant/mappingItem.d.ts +9 -0
- package/dist/merchant/mappingItem.js +40 -0
- package/dist/merchant/mappingItem.js.map +1 -0
- package/dist/merchant/mappingParameterType.d.ts +4 -0
- package/dist/merchant/mappingParameterType.js +9 -0
- package/dist/merchant/mappingParameterType.js.map +1 -0
- package/dist/merchant/merchant.d.ts +186 -0
- package/dist/merchant/merchant.js +585 -0
- package/dist/merchant/merchant.js.map +1 -0
- package/dist/merchant/merchantDisplayLogoUrl.d.ts +8 -0
- package/dist/merchant/merchantDisplayLogoUrl.js +39 -0
- package/dist/merchant/merchantDisplayLogoUrl.js.map +1 -0
- package/dist/merchant/merchantLocation.d.ts +20 -0
- package/dist/merchant/merchantLocation.js +82 -0
- package/dist/merchant/merchantLocation.js.map +1 -0
- package/dist/merchant/otherLocation.d.ts +9 -0
- package/dist/merchant/otherLocation.js +43 -0
- package/dist/merchant/otherLocation.js.map +1 -0
- package/dist/merchant/rateShowingOptionType.d.ts +10 -0
- package/dist/merchant/rateShowingOptionType.js +15 -0
- package/dist/merchant/rateShowingOptionType.js.map +1 -0
- package/dist/merchant/report.d.ts +8 -0
- package/dist/merchant/report.js +39 -0
- package/dist/merchant/report.js.map +1 -0
- package/dist/merchant/shipHero.d.ts +5 -0
- package/dist/merchant/shipHero.js +29 -0
- package/dist/merchant/shipHero.js.map +1 -0
- package/dist/merchant/shippingRule.d.ts +14 -0
- package/dist/merchant/shippingRule.js +55 -0
- package/dist/merchant/shippingRule.js.map +1 -0
- package/dist/merchant/shipstation.d.ts +6 -0
- package/dist/merchant/shipstation.js +33 -0
- package/dist/merchant/shipstation.js.map +1 -0
- package/dist/merchant/status.d.ts +5 -0
- package/dist/merchant/status.js +9 -0
- package/dist/merchant/status.js.map +1 -0
- package/dist/merchant/strategies/location/locationPricing.d.ts +5 -0
- package/dist/merchant/strategies/location/locationPricing.js +26 -0
- package/dist/merchant/strategies/location/locationPricing.js.map +1 -0
- package/dist/merchant/strategies/location/locationPricingRow.d.ts +5 -0
- package/dist/merchant/strategies/location/locationPricingRow.js +26 -0
- package/dist/merchant/strategies/location/locationPricingRow.js.map +1 -0
- package/dist/merchant/strategies/multipack/multipackPricing.d.ts +5 -0
- package/dist/merchant/strategies/multipack/multipackPricing.js +26 -0
- package/dist/merchant/strategies/multipack/multipackPricing.js.map +1 -0
- package/dist/merchant/strategies/multipack/multipackPricingRow.d.ts +6 -0
- package/dist/merchant/strategies/multipack/multipackPricingRow.js +27 -0
- package/dist/merchant/strategies/multipack/multipackPricingRow.js.map +1 -0
- package/dist/merchant/strategies/multipack/multipackPricingType.d.ts +18 -0
- package/dist/merchant/strategies/multipack/multipackPricingType.js +23 -0
- package/dist/merchant/strategies/multipack/multipackPricingType.js.map +1 -0
- package/dist/merchant/strategies/namedPricingStrategy.d.ts +7 -0
- package/dist/merchant/strategies/namedPricingStrategy.js +35 -0
- package/dist/merchant/strategies/namedPricingStrategy.js.map +1 -0
- package/dist/merchant/strategies/pricingEntry.d.ts +6 -0
- package/dist/merchant/strategies/pricingEntry.js +34 -0
- package/dist/merchant/strategies/pricingEntry.js.map +1 -0
- package/dist/merchant/strategies/pricingRow.d.ts +4 -0
- package/dist/merchant/strategies/pricingRow.js +24 -0
- package/dist/merchant/strategies/pricingRow.js.map +1 -0
- package/dist/merchant/strategies/pricingStrategy.d.ts +4 -0
- package/dist/merchant/strategies/pricingStrategy.js +24 -0
- package/dist/merchant/strategies/pricingStrategy.js.map +1 -0
- package/dist/merchant/strategies/signature/signaturePricing.d.ts +5 -0
- package/dist/merchant/strategies/signature/signaturePricing.js +26 -0
- package/dist/merchant/strategies/signature/signaturePricing.js.map +1 -0
- package/dist/merchant/strategies/signature/signaturePricingRow.d.ts +6 -0
- package/dist/merchant/strategies/signature/signaturePricingRow.js +27 -0
- package/dist/merchant/strategies/signature/signaturePricingRow.js.map +1 -0
- package/dist/merchant/strategies/signature/signaturePricingType.d.ts +10 -0
- package/dist/merchant/strategies/signature/signaturePricingType.js +15 -0
- package/dist/merchant/strategies/signature/signaturePricingType.js.map +1 -0
- package/dist/merchant/strategies/size/sizeOptions.d.ts +6 -0
- package/dist/merchant/strategies/size/sizeOptions.js +33 -0
- package/dist/merchant/strategies/size/sizeOptions.js.map +1 -0
- package/dist/merchant/strategies/size/sizePricing.d.ts +5 -0
- package/dist/merchant/strategies/size/sizePricing.js +26 -0
- package/dist/merchant/strategies/size/sizePricing.js.map +1 -0
- package/dist/merchant/strategies/size/sizePricingRow.d.ts +6 -0
- package/dist/merchant/strategies/size/sizePricingRow.js +27 -0
- package/dist/merchant/strategies/size/sizePricingRow.js.map +1 -0
- package/dist/merchant/strategies/size/sizePricingType.d.ts +18 -0
- package/dist/merchant/strategies/size/sizePricingType.js +23 -0
- package/dist/merchant/strategies/size/sizePricingType.js.map +1 -0
- package/dist/merchant/strategies/speed/dispatcherType.d.ts +4 -0
- package/dist/merchant/strategies/speed/dispatcherType.js +9 -0
- package/dist/merchant/strategies/speed/dispatcherType.js.map +1 -0
- package/dist/merchant/strategies/speed/locales.d.ts +6 -0
- package/dist/merchant/strategies/speed/locales.js +26 -0
- package/dist/merchant/strategies/speed/locales.js.map +1 -0
- package/dist/merchant/strategies/speed/speedPricing.d.ts +5 -0
- package/dist/merchant/strategies/speed/speedPricing.js +26 -0
- package/dist/merchant/strategies/speed/speedPricing.js.map +1 -0
- package/dist/merchant/strategies/speed/speedPricingRow.d.ts +12 -0
- package/dist/merchant/strategies/speed/speedPricingRow.js +35 -0
- package/dist/merchant/strategies/speed/speedPricingRow.js.map +1 -0
- package/dist/merchant/strategies/speed/speedPricingType.d.ts +30 -0
- package/dist/merchant/strategies/speed/speedPricingType.js +35 -0
- package/dist/merchant/strategies/speed/speedPricingType.js.map +1 -0
- package/dist/merchant/strategies/weight/weightOptions.d.ts +4 -0
- package/dist/merchant/strategies/weight/weightOptions.js +25 -0
- package/dist/merchant/strategies/weight/weightOptions.js.map +1 -0
- package/dist/merchant/strategies/weight/weightPricing.d.ts +5 -0
- package/dist/merchant/strategies/weight/weightPricing.js +26 -0
- package/dist/merchant/strategies/weight/weightPricing.js.map +1 -0
- package/dist/merchant/strategies/weight/weightPricingRow.d.ts +5 -0
- package/dist/merchant/strategies/weight/weightPricingRow.js +26 -0
- package/dist/merchant/strategies/weight/weightPricingRow.js.map +1 -0
- package/dist/merchant/taskTimeCreationType.d.ts +14 -0
- package/dist/merchant/taskTimeCreationType.js +19 -0
- package/dist/merchant/taskTimeCreationType.js.map +1 -0
- package/dist/merchant/webhookItem.d.ts +4 -0
- package/dist/merchant/webhookItem.js +25 -0
- package/dist/merchant/webhookItem.js.map +1 -0
- package/dist/merchant/webhooks.d.ts +7 -0
- package/dist/merchant/webhooks.js +33 -0
- package/dist/merchant/webhooks.js.map +1 -0
- package/dist/merchant/zone.d.ts +7 -0
- package/dist/merchant/zone.js +34 -0
- package/dist/merchant/zone.js.map +1 -0
- package/dist/order/OrderItem.d.ts +13 -0
- package/dist/order/OrderItem.js +61 -0
- package/dist/order/OrderItem.js.map +1 -0
- package/dist/order/address.d.ts +13 -0
- package/dist/order/address.js +61 -0
- package/dist/order/address.js.map +1 -0
- package/dist/order/customField.d.ts +4 -0
- package/dist/order/customField.js +25 -0
- package/dist/order/customField.js.map +1 -0
- package/dist/order/deliveryClassificationType.d.ts +5 -0
- package/dist/order/deliveryClassificationType.js +9 -0
- package/dist/order/deliveryClassificationType.js.map +1 -0
- package/dist/order/dtoAddress.d.ts +9 -0
- package/dist/order/dtoAddress.js +7 -0
- package/dist/order/dtoAddress.js.map +1 -0
- package/dist/order/emailTrigger.d.ts +6 -0
- package/dist/order/emailTrigger.js +11 -0
- package/dist/order/emailTrigger.js.map +1 -0
- package/dist/order/event.d.ts +4 -0
- package/dist/order/event.js +25 -0
- package/dist/order/event.js.map +1 -0
- package/dist/order/goboltLabelStatusType.d.ts +12 -0
- package/dist/order/goboltLabelStatusType.js +16 -0
- package/dist/order/goboltLabelStatusType.js.map +1 -0
- package/dist/order/goboltTrackingEvent.d.ts +9 -0
- package/dist/order/goboltTrackingEvent.js +43 -0
- package/dist/order/goboltTrackingEvent.js.map +1 -0
- package/dist/order/goboltTrackingEventType.d.ts +12 -0
- package/dist/order/goboltTrackingEventType.js +18 -0
- package/dist/order/goboltTrackingEventType.js.map +1 -0
- package/dist/order/location.d.ts +4 -0
- package/dist/order/location.js +25 -0
- package/dist/order/location.js.map +1 -0
- package/dist/order/locationSummary.d.ts +5 -0
- package/dist/order/locationSummary.js +29 -0
- package/dist/order/locationSummary.js.map +1 -0
- package/dist/order/order.d.ts +92 -0
- package/dist/order/order.js +325 -0
- package/dist/order/order.js.map +1 -0
- package/dist/order/orderSourceType.d.ts +7 -0
- package/dist/order/orderSourceType.js +11 -0
- package/dist/order/orderSourceType.js.map +1 -0
- package/dist/order/otherScans.d.ts +12 -0
- package/dist/order/otherScans.js +54 -0
- package/dist/order/otherScans.js.map +1 -0
- package/dist/order/package.d.ts +10 -0
- package/dist/order/package.js +39 -0
- package/dist/order/package.js.map +1 -0
- package/dist/order/packageReceived.d.ts +5 -0
- package/dist/order/packageReceived.js +29 -0
- package/dist/order/packageReceived.js.map +1 -0
- package/dist/order/pickup.d.ts +25 -0
- package/dist/order/pickup.js +108 -0
- package/dist/order/pickup.js.map +1 -0
- package/dist/order/pickupRecipientName.d.ts +4 -0
- package/dist/order/pickupRecipientName.js +25 -0
- package/dist/order/pickupRecipientName.js.map +1 -0
- package/dist/order/recipient.d.ts +6 -0
- package/dist/order/recipient.js +33 -0
- package/dist/order/recipient.js.map +1 -0
- package/dist/order/savedAddress.d.ts +10 -0
- package/dist/order/savedAddress.js +50 -0
- package/dist/order/savedAddress.js.map +1 -0
- package/dist/order/scanEvent.d.ts +5 -0
- package/dist/order/scanEvent.js +25 -0
- package/dist/order/scanEvent.js.map +1 -0
- package/dist/order/status.d.ts +30 -0
- package/dist/order/status.js +35 -0
- package/dist/order/status.js.map +1 -0
- package/dist/order/task.d.ts +14 -0
- package/dist/order/task.js +62 -0
- package/dist/order/task.js.map +1 -0
- package/dist/order/taskStatus.d.ts +7 -0
- package/dist/order/taskStatus.js +12 -0
- package/dist/order/taskStatus.js.map +1 -0
- package/dist/order/timeChangeEvent.d.ts +12 -0
- package/dist/order/timeChangeEvent.js +57 -0
- package/dist/order/timeChangeEvent.js.map +1 -0
- package/dist/order/timelineEvent.d.ts +11 -0
- package/dist/order/timelineEvent.js +46 -0
- package/dist/order/timelineEvent.js.map +1 -0
- package/dist/order/type.d.ts +4 -0
- package/dist/order/type.js +9 -0
- package/dist/order/type.js.map +1 -0
- package/dist/rate/deliveryServiceType.d.ts +7 -0
- package/dist/rate/deliveryServiceType.js +11 -0
- package/dist/rate/deliveryServiceType.js.map +1 -0
- package/dist/rate/pickupResponse.d.ts +17 -0
- package/dist/rate/pickupResponse.js +69 -0
- package/dist/rate/pickupResponse.js.map +1 -0
- package/dist/rate/rateResponse.d.ts +66 -0
- package/dist/rate/rateResponse.js +221 -0
- package/dist/rate/rateResponse.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Location } from './location';
|
|
2
|
+
export declare class OtherScans {
|
|
3
|
+
time: number;
|
|
4
|
+
id: string;
|
|
5
|
+
platform?: string;
|
|
6
|
+
location?: Location;
|
|
7
|
+
device?: string;
|
|
8
|
+
workerId?: string;
|
|
9
|
+
isPickup?: boolean;
|
|
10
|
+
taskShortId?: string;
|
|
11
|
+
taskId?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OtherScans = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const location_1 = require("./location");
|
|
15
|
+
class OtherScans {
|
|
16
|
+
}
|
|
17
|
+
exports.OtherScans = OtherScans;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], OtherScans.prototype, "time", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], OtherScans.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], OtherScans.prototype, "platform", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
32
|
+
__metadata("design:type", location_1.Location)
|
|
33
|
+
], OtherScans.prototype, "location", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], OtherScans.prototype, "device", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], OtherScans.prototype, "workerId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], OtherScans.prototype, "isPickup", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], OtherScans.prototype, "taskShortId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], OtherScans.prototype, "taskId", void 0);
|
|
54
|
+
//# sourceMappingURL=otherScans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otherScans.js","sourceRoot":"","sources":["../../src/models/order/otherScans.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAClE,yCAAsC;AAEtC,MAAa,UAAU;CA2BtB;AA3BD,gCA2BC;AAzBQ;IADN,IAAA,4CAAS,GAAE;;wCACS;AAGd;IADN,IAAA,4CAAS,GAAE;;sCACO;AAGZ;IADN,IAAA,4CAAS,GAAE;;4CACa;AAGlB;IADN,IAAA,4CAAS,GAAE;8BACM,mBAAQ;4CAAC;AAGpB;IADN,IAAA,4CAAS,GAAE;;0CACW;AAGhB;IADN,IAAA,4CAAS,GAAE;;4CACa;AAGlB;IADN,IAAA,4CAAS,GAAE;;4CACc;AAGnB;IADN,IAAA,4CAAS,GAAE;;+CACgB;AAGrB;IADN,IAAA,4CAAS,GAAE;;0CACW"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SizeOptions } from '../merchant/strategies/size/sizeOptions';
|
|
2
|
+
import { WeightOptions } from '../merchant/strategies/weight/weightOptions';
|
|
3
|
+
import { OrderStatusType } from './status';
|
|
4
|
+
export declare class Package {
|
|
5
|
+
status?: OrderStatusType;
|
|
6
|
+
trackingNumber?: string;
|
|
7
|
+
refNumber?: string;
|
|
8
|
+
sizeOptions: SizeOptions;
|
|
9
|
+
weightOptions: WeightOptions;
|
|
10
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Package = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const sizeOptions_1 = require("../merchant/strategies/size/sizeOptions");
|
|
15
|
+
const weightOptions_1 = require("../merchant/strategies/weight/weightOptions");
|
|
16
|
+
class Package {
|
|
17
|
+
}
|
|
18
|
+
exports.Package = Package;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Package.prototype, "status", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Package.prototype, "trackingNumber", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Package.prototype, "refNumber", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
33
|
+
__metadata("design:type", sizeOptions_1.SizeOptions)
|
|
34
|
+
], Package.prototype, "sizeOptions", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
37
|
+
__metadata("design:type", weightOptions_1.WeightOptions)
|
|
38
|
+
], Package.prototype, "weightOptions", void 0);
|
|
39
|
+
//# sourceMappingURL=package.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/models/order/package.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAClE,yEAAsE;AACtE,+EAA4E;AAG5E,MAAa,OAAO;CAenB;AAfD,0BAeC;AAbQ;IADN,IAAA,4CAAS,GAAE;;uCACoB;AAGzB;IADN,IAAA,4CAAS,GAAE;;+CACmB;AAGxB;IADN,IAAA,4CAAS,GAAE;;0CACc;AAGnB;IADN,IAAA,4CAAS,GAAE;8BACS,yBAAW;4CAAC;AAG1B;IADN,IAAA,4CAAS,GAAE;8BACW,6BAAa;8CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PackageReceived = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
class PackageReceived {
|
|
15
|
+
}
|
|
16
|
+
exports.PackageReceived = PackageReceived;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], PackageReceived.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], PackageReceived.prototype, "receivedAt", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], PackageReceived.prototype, "location", void 0);
|
|
29
|
+
//# sourceMappingURL=packageReceived.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageReceived.js","sourceRoot":"","sources":["../../src/models/order/packageReceived.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAElE,MAAa,eAAe;CAS3B;AATD,0CASC;AAPQ;IADN,IAAA,4CAAS,GAAE;;2CACO;AAGZ;IADN,IAAA,4CAAS,GAAE;;mDACe;AAGpB;IADN,IAAA,4CAAS,GAAE;;iDACa"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Address } from './address';
|
|
2
|
+
import { DTOAddress } from './dtoAddress';
|
|
3
|
+
import { PickupRecipientName } from './pickupRecipientName';
|
|
4
|
+
import { Recipient } from './recipient';
|
|
5
|
+
import { Task } from './task';
|
|
6
|
+
export declare class Pickup {
|
|
7
|
+
id: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
merchantId: string;
|
|
10
|
+
recipient: Recipient;
|
|
11
|
+
dtoRecipientAddress?: DTOAddress | undefined;
|
|
12
|
+
recipientAddress: Address;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
signatureRequired: boolean;
|
|
15
|
+
scanningRequired: boolean;
|
|
16
|
+
validAddress: boolean;
|
|
17
|
+
completeAfter?: number;
|
|
18
|
+
completeBefore?: number;
|
|
19
|
+
notes?: string;
|
|
20
|
+
orderIds: string[];
|
|
21
|
+
packageCount: number;
|
|
22
|
+
tasks: Task[];
|
|
23
|
+
recipientNames?: PickupRecipientName[];
|
|
24
|
+
appointmentId?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Pickup = void 0;
|
|
13
|
+
const dynamodb_data_mapper_1 = require("@aws/dynamodb-data-mapper");
|
|
14
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const cls_rtracer_1 = require("cls-rtracer");
|
|
17
|
+
const address_1 = require("./address");
|
|
18
|
+
const dtoAddress_1 = require("./dtoAddress");
|
|
19
|
+
const pickupRecipientName_1 = require("./pickupRecipientName");
|
|
20
|
+
const recipient_1 = require("./recipient");
|
|
21
|
+
const task_1 = require("./task");
|
|
22
|
+
let Pickup = class Pickup {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.tasks = new Array();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.Pickup = Pickup;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, dynamodb_data_mapper_annotations_1.hashKey)({ defaultProvider: () => cls_rtracer_1.id.toString() }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Pickup.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ defaultProvider: () => new Date() }),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], Pickup.prototype, "createdAt", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Pickup.prototype, "merchantId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ memberType: (0, dynamodb_data_mapper_1.embed)(recipient_1.Recipient) }),
|
|
42
|
+
(0, class_transformer_1.Type)(() => recipient_1.Recipient),
|
|
43
|
+
__metadata("design:type", recipient_1.Recipient)
|
|
44
|
+
], Pickup.prototype, "recipient", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ memberType: (0, dynamodb_data_mapper_1.embed)(dtoAddress_1.DTOAddress) }),
|
|
47
|
+
(0, class_transformer_1.Type)(() => dtoAddress_1.DTOAddress),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], Pickup.prototype, "dtoRecipientAddress", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ memberType: (0, dynamodb_data_mapper_1.embed)(address_1.Address) }),
|
|
52
|
+
(0, class_transformer_1.Type)(() => address_1.Address),
|
|
53
|
+
__metadata("design:type", address_1.Address)
|
|
54
|
+
], Pickup.prototype, "recipientAddress", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], Pickup.prototype, "createdBy", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ defaultProvider: () => true }),
|
|
61
|
+
__metadata("design:type", Boolean)
|
|
62
|
+
], Pickup.prototype, "signatureRequired", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ defaultProvider: () => true }),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], Pickup.prototype, "scanningRequired", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ defaultProvider: () => true }),
|
|
69
|
+
__metadata("design:type", Boolean)
|
|
70
|
+
], Pickup.prototype, "validAddress", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], Pickup.prototype, "completeAfter", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], Pickup.prototype, "completeBefore", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Pickup.prototype, "notes", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
85
|
+
__metadata("design:type", Array)
|
|
86
|
+
], Pickup.prototype, "orderIds", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
89
|
+
__metadata("design:type", Number)
|
|
90
|
+
], Pickup.prototype, "packageCount", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
93
|
+
(0, class_transformer_1.Type)(() => task_1.Task),
|
|
94
|
+
__metadata("design:type", Array)
|
|
95
|
+
], Pickup.prototype, "tasks", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
98
|
+
(0, class_transformer_1.Type)(() => pickupRecipientName_1.PickupRecipientName),
|
|
99
|
+
__metadata("design:type", Array)
|
|
100
|
+
], Pickup.prototype, "recipientNames", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], Pickup.prototype, "appointmentId", void 0);
|
|
105
|
+
exports.Pickup = Pickup = __decorate([
|
|
106
|
+
(0, dynamodb_data_mapper_annotations_1.table)('Pickups')
|
|
107
|
+
], Pickup);
|
|
108
|
+
//# sourceMappingURL=pickup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pickup.js","sourceRoot":"","sources":["../../src/models/order/pickup.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAkD;AAClD,4FAAkF;AAClF,yDAAyC;AACzC,6CAAiC;AACjC,uCAAoC;AACpC,6CAA0C;AAC1C,+DAA4D;AAC5D,2CAAwC;AACxC,iCAA8B;AAGvB,IAAM,MAAM,GAAZ,MAAM,MAAM;IAAZ;QAmDE,UAAK,GAAW,IAAI,KAAK,EAAQ,CAAC;IAQ3C,CAAC;CAAA,CAAA;AA3DY,wBAAM;AAEV;IADN,IAAA,0CAAO,EAAC,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,gBAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;;kCAC/B;AAGZ;IADN,IAAA,4CAAS,EAAC,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;8BAC9B,IAAI;yCAAC;AAGjB;IADN,IAAA,4CAAS,GAAE;;0CACe;AAIpB;IAFN,IAAA,4CAAS,EAAC,EAAE,UAAU,EAAE,IAAA,4BAAK,EAAC,qBAAS,CAAC,EAAE,CAAC;IAC3C,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACH,qBAAS;yCAAC;AAItB;IAFN,IAAA,4CAAS,EAAC,EAAE,UAAU,EAAE,IAAA,4BAAK,EAAC,uBAAU,CAAC,EAAE,CAAC;IAC5C,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAU,CAAC;;mDAC6B;AAI7C;IAFN,IAAA,4CAAS,EAAC,EAAE,UAAU,EAAE,IAAA,4BAAK,EAAC,iBAAO,CAAC,EAAE,CAAC;IACzC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;8BACM,iBAAO;gDAAC;AAG3B;IADN,IAAA,4CAAS,GAAE;;yCACc;AAGnB;IADN,IAAA,4CAAS,EAAC,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;;iDACR;AAG5B;IADN,IAAA,4CAAS,EAAC,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;;gDACT;AAG3B;IADN,IAAA,4CAAS,EAAC,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;;4CACb;AAGvB;IADN,IAAA,4CAAS,GAAE;;6CACkB;AAGvB;IADN,IAAA,4CAAS,GAAE;;8CACmB;AAGxB;IADN,IAAA,4CAAS,GAAE;;qCACU;AAGf;IADN,IAAA,4CAAS,GAAE;;wCACe;AAGpB;IADN,IAAA,4CAAS,GAAE;;4CACiB;AAItB;IAFN,IAAA,4CAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;qCACwB;AAIlC;IAFN,IAAA,4CAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yCAAmB,CAAC;;8CACc;AAGvC;IADN,IAAA,4CAAS,GAAE;;6CACkB;iBA1DnB,MAAM;IADlB,IAAA,wCAAK,EAAC,SAAS,CAAC;GACJ,MAAM,CA2DlB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PickupRecipientName = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
class PickupRecipientName {
|
|
15
|
+
}
|
|
16
|
+
exports.PickupRecipientName = PickupRecipientName;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], PickupRecipientName.prototype, "orderId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], PickupRecipientName.prototype, "recipientName", void 0);
|
|
25
|
+
//# sourceMappingURL=pickupRecipientName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pickupRecipientName.js","sourceRoot":"","sources":["../../src/models/order/pickupRecipientName.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAElE,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAJQ;IADN,IAAA,4CAAS,GAAE;;oDACY;AAGjB;IADN,IAAA,4CAAS,GAAE;;0DACkB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Recipient = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
class Recipient {
|
|
15
|
+
}
|
|
16
|
+
exports.Recipient = Recipient;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Recipient.prototype, "phone", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Recipient.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Recipient.prototype, "notes", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Recipient.prototype, "email", void 0);
|
|
33
|
+
//# sourceMappingURL=recipient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipient.js","sourceRoot":"","sources":["../../src/models/order/recipient.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAElE,MAAa,SAAS;CAYrB;AAZD,8BAYC;AAVQ;IADN,IAAA,4CAAS,GAAE;;wCACU;AAGf;IADN,IAAA,4CAAS,GAAE;;uCACS;AAGd;IADN,IAAA,4CAAS,GAAE;;wCACU;AAGf;IADN,IAAA,4CAAS,GAAE;;wCACU"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SavedAddress = void 0;
|
|
13
|
+
const dynamodb_data_mapper_1 = require("@aws/dynamodb-data-mapper");
|
|
14
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const address_1 = require("./address");
|
|
17
|
+
const recipient_1 = require("./recipient");
|
|
18
|
+
let SavedAddress = class SavedAddress {
|
|
19
|
+
};
|
|
20
|
+
exports.SavedAddress = SavedAddress;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, dynamodb_data_mapper_annotations_1.autoGeneratedHashKey)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], SavedAddress.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ defaultProvider: () => new Date().toISOString() }),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], SavedAddress.prototype, "createdAt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SavedAddress.prototype, "merchantId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ memberType: (0, dynamodb_data_mapper_1.embed)(recipient_1.Recipient) }),
|
|
35
|
+
(0, class_transformer_1.Type)(() => recipient_1.Recipient),
|
|
36
|
+
__metadata("design:type", recipient_1.Recipient)
|
|
37
|
+
], SavedAddress.prototype, "recipient", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ memberType: (0, dynamodb_data_mapper_1.embed)(address_1.Address) }),
|
|
40
|
+
(0, class_transformer_1.Type)(() => address_1.Address),
|
|
41
|
+
__metadata("design:type", address_1.Address)
|
|
42
|
+
], SavedAddress.prototype, "address", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], SavedAddress.prototype, "freeSearch", void 0);
|
|
47
|
+
exports.SavedAddress = SavedAddress = __decorate([
|
|
48
|
+
(0, dynamodb_data_mapper_annotations_1.table)('Addresses')
|
|
49
|
+
], SavedAddress);
|
|
50
|
+
//# sourceMappingURL=savedAddress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"savedAddress.js","sourceRoot":"","sources":["../../src/models/order/savedAddress.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAkD;AAClD,4FAA+F;AAC/F,yDAAyC;AACzC,uCAAoC;AACpC,2CAAwC;AAGjC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAoBxB,CAAA;AApBY,oCAAY;AAEhB;IADN,IAAA,uDAAoB,GAAE;;wCACJ;AAGZ;IADN,IAAA,4CAAS,EAAC,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC;8BAC5C,IAAI;+CAAC;AAGjB;IADN,IAAA,4CAAS,GAAE;;gDACe;AAIpB;IAFN,IAAA,4CAAS,EAAC,EAAE,UAAU,EAAE,IAAA,4BAAK,EAAC,qBAAS,CAAC,EAAE,CAAC;IAC3C,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACH,qBAAS;+CAAC;AAItB;IAFN,IAAA,4CAAS,EAAC,EAAE,UAAU,EAAE,IAAA,4BAAK,EAAC,iBAAO,CAAC,EAAE,CAAC;IACzC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;8BACH,iBAAO;6CAAC;AAGlB;IADN,IAAA,4CAAS,GAAE;;gDACe;uBAnBhB,YAAY;IADxB,IAAA,wCAAK,EAAC,WAAW,CAAC;GACN,YAAY,CAoBxB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ScanEvent = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
class ScanEvent {
|
|
15
|
+
}
|
|
16
|
+
exports.ScanEvent = ScanEvent;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], ScanEvent.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], ScanEvent.prototype, "events", void 0);
|
|
25
|
+
//# sourceMappingURL=scanEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scanEvent.js","sourceRoot":"","sources":["../../src/models/order/scanEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAkE;AAGlE,MAAa,SAAS;CAMrB;AAND,8BAMC;AAJQ;IADN,IAAA,4CAAS,GAAE;;qCACO;AAGZ;IADN,IAAA,4CAAS,GAAE;;yCACY"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum OrderStatus {
|
|
2
|
+
CREATED = "CREATED",
|
|
3
|
+
GEOCODEDFAILED = "GEOCODEDFAILED",
|
|
4
|
+
OUT_OF_FSA = "OUT_OF_FSA",
|
|
5
|
+
RATE_FAILED = "RATE_FAILED",
|
|
6
|
+
GEOCODED = "GEOCODED",
|
|
7
|
+
PICKUP_READY = "PICKUP_READY",
|
|
8
|
+
CARRIER_PICKED_UP = "CARRIER_PICKED_UP",
|
|
9
|
+
SHIPMENT_CREATED = "SHIPMENT_CREATED",
|
|
10
|
+
SHIPMENT_PROCESSING = "SHIPMENT_PROCESSING",
|
|
11
|
+
OUT_FOR_DELIVERY = "OUT_FOR_DELIVERY",
|
|
12
|
+
DELIVERED = "DELIVERED",
|
|
13
|
+
FAILED = "FAILED",
|
|
14
|
+
CANCELLED = "CANCELLED",
|
|
15
|
+
ARCHIVED = "ARCHIVED",
|
|
16
|
+
RECEIVED_AT_DESTINATION = "RECEIVED_AT_DESTINATION",
|
|
17
|
+
UNSUPPORTED_WEIGHT = "UNSUPPORTED_WEIGHT",
|
|
18
|
+
RETURN_TO_SENDER = "RETURN_TO_SENDER",
|
|
19
|
+
INVALIDTIME = "INVALIDTIME",
|
|
20
|
+
NOT_SUPPORTED = "NOT_SUPPORTED",
|
|
21
|
+
PICKUP_ASSIGNED = "PICKUP_ASSIGNED",
|
|
22
|
+
PICKUP_EN_ROUTE = "PICKUP_EN_ROUTE",
|
|
23
|
+
PICKUP_COMPLETED = "PICKUP_COMPLETED",
|
|
24
|
+
PICKUP_FAILED = "PICKUP_FAILED",
|
|
25
|
+
DELIVERY_ASSIGNED = "DELIVERY_ASSIGNED",
|
|
26
|
+
DELIVERY_EN_ROUTE = "DELIVERY_EN_ROUTE",
|
|
27
|
+
DELIVERY_COMPLETED = "DELIVERY_COMPLETED",
|
|
28
|
+
DELIVERY_FAILED = "DELIVERY_FAILED"
|
|
29
|
+
}
|
|
30
|
+
export type OrderStatusType = keyof typeof OrderStatus;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderStatus = void 0;
|
|
4
|
+
var OrderStatus;
|
|
5
|
+
(function (OrderStatus) {
|
|
6
|
+
OrderStatus["CREATED"] = "CREATED";
|
|
7
|
+
OrderStatus["GEOCODEDFAILED"] = "GEOCODEDFAILED";
|
|
8
|
+
OrderStatus["OUT_OF_FSA"] = "OUT_OF_FSA";
|
|
9
|
+
OrderStatus["RATE_FAILED"] = "RATE_FAILED";
|
|
10
|
+
OrderStatus["GEOCODED"] = "GEOCODED";
|
|
11
|
+
OrderStatus["PICKUP_READY"] = "PICKUP_READY";
|
|
12
|
+
OrderStatus["CARRIER_PICKED_UP"] = "CARRIER_PICKED_UP";
|
|
13
|
+
OrderStatus["SHIPMENT_CREATED"] = "SHIPMENT_CREATED";
|
|
14
|
+
OrderStatus["SHIPMENT_PROCESSING"] = "SHIPMENT_PROCESSING";
|
|
15
|
+
OrderStatus["OUT_FOR_DELIVERY"] = "OUT_FOR_DELIVERY";
|
|
16
|
+
OrderStatus["DELIVERED"] = "DELIVERED";
|
|
17
|
+
OrderStatus["FAILED"] = "FAILED";
|
|
18
|
+
OrderStatus["CANCELLED"] = "CANCELLED";
|
|
19
|
+
OrderStatus["ARCHIVED"] = "ARCHIVED";
|
|
20
|
+
OrderStatus["RECEIVED_AT_DESTINATION"] = "RECEIVED_AT_DESTINATION";
|
|
21
|
+
OrderStatus["UNSUPPORTED_WEIGHT"] = "UNSUPPORTED_WEIGHT";
|
|
22
|
+
OrderStatus["RETURN_TO_SENDER"] = "RETURN_TO_SENDER";
|
|
23
|
+
//TODO: deprecate statuses not being used
|
|
24
|
+
OrderStatus["INVALIDTIME"] = "INVALIDTIME";
|
|
25
|
+
OrderStatus["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
|
26
|
+
OrderStatus["PICKUP_ASSIGNED"] = "PICKUP_ASSIGNED";
|
|
27
|
+
OrderStatus["PICKUP_EN_ROUTE"] = "PICKUP_EN_ROUTE";
|
|
28
|
+
OrderStatus["PICKUP_COMPLETED"] = "PICKUP_COMPLETED";
|
|
29
|
+
OrderStatus["PICKUP_FAILED"] = "PICKUP_FAILED";
|
|
30
|
+
OrderStatus["DELIVERY_ASSIGNED"] = "DELIVERY_ASSIGNED";
|
|
31
|
+
OrderStatus["DELIVERY_EN_ROUTE"] = "DELIVERY_EN_ROUTE";
|
|
32
|
+
OrderStatus["DELIVERY_COMPLETED"] = "DELIVERY_COMPLETED";
|
|
33
|
+
OrderStatus["DELIVERY_FAILED"] = "DELIVERY_FAILED";
|
|
34
|
+
})(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
|
|
35
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/models/order/status.ts"],"names":[],"mappings":";;;AAAA,IAAY,WA8BX;AA9BD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gDAAiC,CAAA;IACjC,wCAAyB,CAAA;IACzB,0CAA2B,CAAA;IAC3B,oCAAqB,CAAA;IACrB,4CAA6B,CAAA;IAC7B,sDAAuC,CAAA;IACvC,oDAAqC,CAAA;IACrC,0DAA2C,CAAA;IAC3C,oDAAqC,CAAA;IACrC,sCAAuB,CAAA;IACvB,gCAAiB,CAAA;IACjB,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;IACrB,kEAAmD,CAAA;IACnD,wDAAyC,CAAA;IACzC,oDAAqC,CAAA;IAErC,yCAAyC;IACzC,0CAA2B,CAAA;IAC3B,8CAA+B,CAAA;IAC/B,kDAAmC,CAAA;IACnC,kDAAmC,CAAA;IACnC,oDAAqC,CAAA;IACrC,8CAA+B,CAAA;IAC/B,sDAAuC,CAAA;IACvC,sDAAuC,CAAA;IACvC,wDAAyC,CAAA;IACzC,kDAAmC,CAAA;AACrC,CAAC,EA9BW,WAAW,2BAAX,WAAW,QA8BtB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TaskStatus } from './taskStatus';
|
|
2
|
+
import { TaskType } from './type';
|
|
3
|
+
export declare class Task {
|
|
4
|
+
id: string;
|
|
5
|
+
shortId: string;
|
|
6
|
+
taskType: TaskType;
|
|
7
|
+
taskStatus: TaskStatus;
|
|
8
|
+
startedAt?: Date;
|
|
9
|
+
completedAt?: Date;
|
|
10
|
+
signatureUrl?: string;
|
|
11
|
+
completionPhotosUrl: string[];
|
|
12
|
+
completionNotes?: string;
|
|
13
|
+
workerId?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Task = void 0;
|
|
13
|
+
const dynamodb_data_mapper_annotations_1 = require("@aws/dynamodb-data-mapper-annotations");
|
|
14
|
+
const taskStatus_1 = require("./taskStatus");
|
|
15
|
+
const type_1 = require("./type");
|
|
16
|
+
class Task {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.completionPhotosUrl = new Array();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Task = Task;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Task.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Task.prototype, "shortId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Task.prototype, "taskType", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Task.prototype, "taskStatus", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ memberType: { type: 'Date' } }),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], Task.prototype, "startedAt", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)({ memberType: { type: 'Date' } }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], Task.prototype, "completedAt", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Task.prototype, "signatureUrl", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], Task.prototype, "completionPhotosUrl", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Task.prototype, "completionNotes", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, dynamodb_data_mapper_annotations_1.attribute)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], Task.prototype, "workerId", void 0);
|
|
62
|
+
//# sourceMappingURL=task.js.map
|