@bharatbxhipment/xhipment-models-v2 1.0.83 → 1.0.84

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 (41) hide show
  1. package/dist/schemas/consol-execution-history/consol-execution-history.model.d.ts +2 -4
  2. package/dist/schemas/consol-execution-history/consol-execution-history.model.d.ts.map +1 -1
  3. package/dist/schemas/consol-execution-history/consol-execution-history.model.js +14 -22
  4. package/dist/schemas/consol-execution-history/consol-execution-history.model.js.map +1 -1
  5. package/dist/schemas/consol-executions/consol-execution.model.d.ts +2 -4
  6. package/dist/schemas/consol-executions/consol-execution.model.d.ts.map +1 -1
  7. package/dist/schemas/consol-executions/consol-execution.model.js +14 -22
  8. package/dist/schemas/consol-executions/consol-execution.model.js.map +1 -1
  9. package/dist/schemas/payment-history/payment-history.model.d.ts +2 -4
  10. package/dist/schemas/payment-history/payment-history.model.d.ts.map +1 -1
  11. package/dist/schemas/payment-history/payment-history.model.js +14 -18
  12. package/dist/schemas/payment-history/payment-history.model.js.map +1 -1
  13. package/dist/schemas/payments/payment.model.d.ts +3 -5
  14. package/dist/schemas/payments/payment.model.d.ts.map +1 -1
  15. package/dist/schemas/payments/payment.model.js +5 -9
  16. package/dist/schemas/payments/payment.model.js.map +1 -1
  17. package/dist/schemas/proposal-history/proposal-history.model.d.ts +2 -4
  18. package/dist/schemas/proposal-history/proposal-history.model.d.ts.map +1 -1
  19. package/dist/schemas/proposal-history/proposal-history.model.js +40 -48
  20. package/dist/schemas/proposal-history/proposal-history.model.js.map +1 -1
  21. package/dist/schemas/proposals/proposal.model.d.ts +0 -2
  22. package/dist/schemas/proposals/proposal.model.d.ts.map +1 -1
  23. package/dist/schemas/proposals/proposal.model.js +60 -68
  24. package/dist/schemas/proposals/proposal.model.js.map +1 -1
  25. package/dist/schemas/quotes/quote-history.model.d.ts +2 -4
  26. package/dist/schemas/quotes/quote-history.model.d.ts.map +1 -1
  27. package/dist/schemas/quotes/quote-history.model.js +88 -96
  28. package/dist/schemas/quotes/quote-history.model.js.map +1 -1
  29. package/dist/schemas/quotes/quote.model.d.ts +2 -4
  30. package/dist/schemas/quotes/quote.model.d.ts.map +1 -1
  31. package/dist/schemas/quotes/quote.model.js +113 -121
  32. package/dist/schemas/quotes/quote.model.js.map +1 -1
  33. package/dist/schemas/shipment-execution-history/shipment-execution-history.model.d.ts +2 -4
  34. package/dist/schemas/shipment-execution-history/shipment-execution-history.model.d.ts.map +1 -1
  35. package/dist/schemas/shipment-execution-history/shipment-execution-history.model.js +89 -97
  36. package/dist/schemas/shipment-execution-history/shipment-execution-history.model.js.map +1 -1
  37. package/dist/schemas/tracking/tracking.model.d.ts +2 -3
  38. package/dist/schemas/tracking/tracking.model.d.ts.map +1 -1
  39. package/dist/schemas/tracking/tracking.model.js +10 -14
  40. package/dist/schemas/tracking/tracking.model.js.map +1 -1
  41. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { Schema, Model } from 'mongoose';
1
+ import { Schema } from 'mongoose';
2
2
  import { IConsolExecutionHistoryRecord } from './consol-execution-history.interface';
3
- export declare const consolExecutionHistoryBaseSchema: Schema<IConsolExecutionHistoryRecord, Model<IConsolExecutionHistoryRecord, any, any, any, import("mongoose").Document<unknown, any, IConsolExecutionHistoryRecord, any, {}> & IConsolExecutionHistoryRecord & Required<{
3
+ export declare const consolExecutionHistoryBaseSchema: Schema<IConsolExecutionHistoryRecord, import("mongoose").Model<IConsolExecutionHistoryRecord, any, any, any, import("mongoose").Document<unknown, any, IConsolExecutionHistoryRecord, any, {}> & IConsolExecutionHistoryRecord & Required<{
4
4
  _id: import("mongoose").Types.ObjectId;
5
5
  }> & {
6
6
  __v: number;
@@ -9,6 +9,4 @@ export declare const consolExecutionHistoryBaseSchema: Schema<IConsolExecutionHi
9
9
  }> & {
10
10
  __v: number;
11
11
  }>;
12
- export declare const CONSOL_EXECUTION_HISTORY_DISCRIMINATOR_SCHEMAS: Record<string, Schema>;
13
- export declare const initiateConsolExecutionHistoryDiscriminators: (model: Model<IConsolExecutionHistoryRecord>) => void;
14
12
  //# sourceMappingURL=consol-execution-history.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"consol-execution-history.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/consol-execution-history/consol-execution-history.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAIrF,eAAO,MAAM,gCAAgC;;;;;;;;EAO3C,CAAC;AAEH,eAAO,MAAM,8CAA8C,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAcjF,CAAC;AAEF,eAAO,MAAM,4CAA4C,GAAI,OAAO,KAAK,CAAC,6BAA6B,CAAC,SAIvG,CAAC"}
1
+ {"version":3,"file":"consol-execution-history.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/consol-execution-history/consol-execution-history.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAIrF,eAAO,MAAM,gCAAgC;;;;;;;;EAO3C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initiateConsolExecutionHistoryDiscriminators = exports.CONSOL_EXECUTION_HISTORY_DISCRIMINATOR_SCHEMAS = exports.consolExecutionHistoryBaseSchema = void 0;
3
+ exports.consolExecutionHistoryBaseSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const flexLegSchema = new mongoose_1.Schema({}, { _id: false, strict: false });
6
6
  exports.consolExecutionHistoryBaseSchema = new mongoose_1.Schema({
@@ -11,25 +11,17 @@ exports.consolExecutionHistoryBaseSchema = new mongoose_1.Schema({
11
11
  timestamps: true,
12
12
  discriminatorKey: 'kind',
13
13
  });
14
- exports.CONSOL_EXECUTION_HISTORY_DISCRIMINATOR_SCHEMAS = {
15
- 'port_to_port_air_consol-execution-history': new mongoose_1.Schema({
16
- portToPortHandling: flexLegSchema,
17
- destinationWareHouseHandling: flexLegSchema,
18
- }),
19
- 'trucking_consol-execution-history': new mongoose_1.Schema({
20
- lastMileDelivery: flexLegSchema,
21
- }),
22
- 'port_to_port_lcl_consol-execution-history': new mongoose_1.Schema({
23
- containerStuffing: flexLegSchema,
24
- sailout: flexLegSchema,
25
- deliverContainerToDeconsolidationWarehouse: flexLegSchema,
26
- deliverContainerToDestination: flexLegSchema,
27
- }),
28
- };
29
- const initiateConsolExecutionHistoryDiscriminators = (model) => {
30
- for (const [key, schema] of Object.entries(exports.CONSOL_EXECUTION_HISTORY_DISCRIMINATOR_SCHEMAS)) {
31
- model.discriminator(key, schema);
32
- }
33
- };
34
- exports.initiateConsolExecutionHistoryDiscriminators = initiateConsolExecutionHistoryDiscriminators;
14
+ exports.consolExecutionHistoryBaseSchema.discriminator('port_to_port_air_consol-execution-history', new mongoose_1.Schema({
15
+ portToPortHandling: flexLegSchema,
16
+ destinationWareHouseHandling: flexLegSchema,
17
+ }));
18
+ exports.consolExecutionHistoryBaseSchema.discriminator('trucking_consol-execution-history', new mongoose_1.Schema({
19
+ lastMileDelivery: flexLegSchema,
20
+ }));
21
+ exports.consolExecutionHistoryBaseSchema.discriminator('port_to_port_lcl_consol-execution-history', new mongoose_1.Schema({
22
+ containerStuffing: flexLegSchema,
23
+ sailout: flexLegSchema,
24
+ deliverContainerToDeconsolidationWarehouse: flexLegSchema,
25
+ deliverContainerToDestination: flexLegSchema,
26
+ }));
35
27
  //# sourceMappingURL=consol-execution-history.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"consol-execution-history.model.js","sourceRoot":"","sources":["../../../src/schemas/consol-execution-history/consol-execution-history.model.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAGzC,MAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,EAAE,EAAE,EAAE,GA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Root":"","sources":["../../../src/schemas/consol-execution-history/consol-execution-history.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGlC,MAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAEvD,QAAA,gCAAgC,GAAG,IAAI,iBAAM,CAAgC;IACxF,iBAAiB,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1F,UAAU,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;IACxD,QAAQ,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC1E,EAAE;IACD,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,MAAM;CACzB,CAAC,CAAC;AAEH,wCAAgC,CAAC,aAAa,CAAC,2CAA2C,EAAE,IAAI,iBAAM,CAAC;IACrG,kBAAkB,EAAE,aAAa;IACjC,4BAA4B,EAAE,aAAa;CAC5C,CAAC,CAAC,CAAC;AAEJ,wCAAgC,CAAC,aAAa,CAAC,mCAAmC,EAAE,IAAI,iBAAM,CAAC;IAC7F,gBAAgB,EAAE,aAAa;CAChC,CAAC,CAAC,CAAC;AAEJ,wCAAgC,CAAC,aAAa,CAAC,2CAA2C,EAAE,IAAI,iBAAM,CAAC;IACrG,iBAAiB,EAAE,aAAa;IAChC,OAAO,EAAE,aAAa;IACtB,0CAA0C,EAAE,aAAa;IACzD,6BAA6B,EAAE,aAAa;CAC7C,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Schema, Model } from 'mongoose';
1
+ import { Schema } from 'mongoose';
2
2
  import { IConsolExecutionRecord } from './consol-execution.interface';
3
- export declare const consolExecutionBaseSchema: Schema<IConsolExecutionRecord, Model<IConsolExecutionRecord, any, any, any, import("mongoose").Document<unknown, any, IConsolExecutionRecord, any, {}> & IConsolExecutionRecord & Required<{
3
+ export declare const consolExecutionBaseSchema: Schema<IConsolExecutionRecord, import("mongoose").Model<IConsolExecutionRecord, any, any, any, import("mongoose").Document<unknown, any, IConsolExecutionRecord, any, {}> & IConsolExecutionRecord & Required<{
4
4
  _id: import("mongoose").Types.ObjectId;
5
5
  }> & {
6
6
  __v: number;
@@ -9,6 +9,4 @@ export declare const consolExecutionBaseSchema: Schema<IConsolExecutionRecord, M
9
9
  }> & {
10
10
  __v: number;
11
11
  }>;
12
- export declare const CONSOL_EXECUTION_DISCRIMINATOR_SCHEMAS: Record<string, Schema>;
13
- export declare const initiateConsolExecutionDiscriminators: (model: Model<IConsolExecutionRecord>) => void;
14
12
  //# sourceMappingURL=consol-execution.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"consol-execution.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/consol-executions/consol-execution.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE,eAAO,MAAM,yBAAyB;;;;;;;;EAKpC,CAAC;AAEH,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAczE,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAAI,OAAO,KAAK,CAAC,sBAAsB,CAAC,SAIzF,CAAC"}
1
+ {"version":3,"file":"consol-execution.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/consol-executions/consol-execution.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE,eAAO,MAAM,yBAAyB;;;;;;;;EAKpC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initiateConsolExecutionDiscriminators = exports.CONSOL_EXECUTION_DISCRIMINATOR_SCHEMAS = exports.consolExecutionBaseSchema = void 0;
3
+ exports.consolExecutionBaseSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const flexLegSchema = new mongoose_1.Schema({}, { _id: false, strict: false });
6
6
  exports.consolExecutionBaseSchema = new mongoose_1.Schema({
@@ -9,25 +9,17 @@ exports.consolExecutionBaseSchema = new mongoose_1.Schema({
9
9
  timestamps: true,
10
10
  discriminatorKey: 'kind',
11
11
  });
12
- exports.CONSOL_EXECUTION_DISCRIMINATOR_SCHEMAS = {
13
- 'port_to_port_air_consol-execution': new mongoose_1.Schema({
14
- portToPortHandling: flexLegSchema,
15
- destinationWareHouseHandling: flexLegSchema,
16
- }),
17
- 'trucking_consol-execution': new mongoose_1.Schema({
18
- lastMileDelivery: flexLegSchema,
19
- }),
20
- 'port_to_port_lcl_consol-execution': new mongoose_1.Schema({
21
- containerStuffing: flexLegSchema,
22
- sailout: flexLegSchema,
23
- deliverContainerToDeconsolidationWarehouse: flexLegSchema,
24
- deliverContainerToDestination: flexLegSchema,
25
- }),
26
- };
27
- const initiateConsolExecutionDiscriminators = (model) => {
28
- for (const [key, schema] of Object.entries(exports.CONSOL_EXECUTION_DISCRIMINATOR_SCHEMAS)) {
29
- model.discriminator(key, schema);
30
- }
31
- };
32
- exports.initiateConsolExecutionDiscriminators = initiateConsolExecutionDiscriminators;
12
+ exports.consolExecutionBaseSchema.discriminator('port_to_port_air_consol-execution', new mongoose_1.Schema({
13
+ portToPortHandling: flexLegSchema,
14
+ destinationWareHouseHandling: flexLegSchema,
15
+ }));
16
+ exports.consolExecutionBaseSchema.discriminator('trucking_consol-execution', new mongoose_1.Schema({
17
+ lastMileDelivery: flexLegSchema,
18
+ }));
19
+ exports.consolExecutionBaseSchema.discriminator('port_to_port_lcl_consol-execution', new mongoose_1.Schema({
20
+ containerStuffing: flexLegSchema,
21
+ sailout: flexLegSchema,
22
+ deliverContainerToDeconsolidationWarehouse: flexLegSchema,
23
+ deliverContainerToDestination: flexLegSchema,
24
+ }));
33
25
  //# sourceMappingURL=consol-execution.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"consol-execution.model.js","sourceRoot":"","sources":["../../../src/schemas/consol-executions/consol-execution.model.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAGzC,MAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAEvD,QAAA,yBAAyB,GAAG,IAAI,iBAAM,CAAyB;IAC1E,QAAQ,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC1E,EAAE;IACD,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,MAAM;CACzB,CAAC,CAAC;AAEU,QAAA,sCAAsC,GAA2B;IAC5E,mCAAmC,EAAE,IAAI,iBAAM,CAAC;QAC9C,kBAAkB,EAAE,aAAa;QACjC,4BAA4B,EAAE,aAAa;KAC5C,CAAC;IACF,2BAA2B,EAAE,IAAI,iBAAM,CAAC;QACtC,gBAAgB,EAAE,aAAa;KAChC,CAAC;IACF,mCAAmC,EAAE,IAAI,iBAAM,CAAC;QAC9C,iBAAiB,EAAE,aAAa;QAChC,OAAO,EAAE,aAAa;QACtB,0CAA0C,EAAE,aAAa;QACzD,6BAA6B,EAAE,aAAa;KAC7C,CAAC;CACH,CAAC;AAEK,MAAM,qCAAqC,GAAG,CAAC,KAAoC,EAAE,EAAE;IAC5F,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,8CAAsC,CAAC,EAAE,CAAC;QACnF,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;AACH,CAAC,CAAC;AAJW,QAAA,qCAAqC,yCAIhD"}
1
+ {"version":3,"file":"consol-execution.model.js","sourceRoot":"","sources":["../../../src/schemas/consol-executions/consol-execution.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGlC,MAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAEvD,QAAA,yBAAyB,GAAG,IAAI,iBAAM,CAAyB;IAC1E,QAAQ,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC1E,EAAE;IACD,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,MAAM;CACzB,CAAC,CAAC;AAEH,iCAAyB,CAAC,aAAa,CAAC,mCAAmC,EAAE,IAAI,iBAAM,CAAC;IACtF,kBAAkB,EAAE,aAAa;IACjC,4BAA4B,EAAE,aAAa;CAC5C,CAAC,CAAC,CAAC;AAEJ,iCAAyB,CAAC,aAAa,CAAC,2BAA2B,EAAE,IAAI,iBAAM,CAAC;IAC9E,gBAAgB,EAAE,aAAa;CAChC,CAAC,CAAC,CAAC;AAEJ,iCAAyB,CAAC,aAAa,CAAC,mCAAmC,EAAE,IAAI,iBAAM,CAAC;IACtF,iBAAiB,EAAE,aAAa;IAChC,OAAO,EAAE,aAAa;IACtB,0CAA0C,EAAE,aAAa;IACzD,6BAA6B,EAAE,aAAa;CAC7C,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Schema, Model } from 'mongoose';
1
+ import { Schema } from 'mongoose';
2
2
  import { IPaymentHistoryRecord } from './payment-history.interface';
3
- export declare const paymentHistoryBaseSchema: Schema<IPaymentHistoryRecord, Model<IPaymentHistoryRecord, any, any, any, import("mongoose").Document<unknown, any, IPaymentHistoryRecord, any, {}> & IPaymentHistoryRecord & Required<{
3
+ export declare const paymentHistoryBaseSchema: Schema<IPaymentHistoryRecord, import("mongoose").Model<IPaymentHistoryRecord, any, any, any, import("mongoose").Document<unknown, any, IPaymentHistoryRecord, any, {}> & IPaymentHistoryRecord & Required<{
4
4
  _id: import("mongoose").Types.ObjectId;
5
5
  }> & {
6
6
  __v: number;
@@ -9,6 +9,4 @@ export declare const paymentHistoryBaseSchema: Schema<IPaymentHistoryRecord, Mod
9
9
  }> & {
10
10
  __v: number;
11
11
  }>;
12
- export declare const PAYMENT_HISTORY_DISCRIMINATOR_SCHEMAS: Record<string, Schema>;
13
- export declare const initiatePaymentHistoryDiscriminators: (model: Model<IPaymentHistoryRecord>) => void;
14
12
  //# sourceMappingURL=payment-history.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-history.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/payment-history/payment-history.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;;;;;;EAcnC,CAAC;AAQH,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAUxE,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAAI,OAAO,KAAK,CAAC,qBAAqB,CAAC,SAIvF,CAAC"}
1
+ {"version":3,"file":"payment-history.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/payment-history/payment-history.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;;;;;;EAcnC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initiatePaymentHistoryDiscriminators = exports.PAYMENT_HISTORY_DISCRIMINATOR_SCHEMAS = exports.paymentHistoryBaseSchema = void 0;
3
+ exports.paymentHistoryBaseSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  exports.paymentHistoryBaseSchema = new mongoose_1.Schema({
6
6
  bookingId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Bookings', required: true },
@@ -22,21 +22,17 @@ const paymentHistoryDiscriminatorSchema = new mongoose_1.Schema({
22
22
  billingEntityConfirmed: { type: Boolean },
23
23
  customDuty: { type: mongoose_1.Schema.Types.Mixed },
24
24
  });
25
- exports.PAYMENT_HISTORY_DISCRIMINATOR_SCHEMAS = {
26
- 'air_freight-payment-history': paymentHistoryDiscriminatorSchema,
27
- 'lcl-payment-history': paymentHistoryDiscriminatorSchema,
28
- 'fcl-payment-history': paymentHistoryDiscriminatorSchema,
29
- 'dd-payment-history': paymentHistoryDiscriminatorSchema,
30
- 'dd-transloading-payment-history': paymentHistoryDiscriminatorSchema,
31
- 'bonds-payment-history': paymentHistoryDiscriminatorSchema,
32
- 'fcl-transloading-payment-history': paymentHistoryDiscriminatorSchema,
33
- 'trucking-payment-history': paymentHistoryDiscriminatorSchema,
34
- 'lcl-transloading-payment-history': paymentHistoryDiscriminatorSchema,
35
- };
36
- const initiatePaymentHistoryDiscriminators = (model) => {
37
- for (const [key, schema] of Object.entries(exports.PAYMENT_HISTORY_DISCRIMINATOR_SCHEMAS)) {
38
- model.discriminator(key, schema);
39
- }
40
- };
41
- exports.initiatePaymentHistoryDiscriminators = initiatePaymentHistoryDiscriminators;
25
+ for (const key of [
26
+ 'air_freight-payment-history',
27
+ 'lcl-payment-history',
28
+ 'fcl-payment-history',
29
+ 'dd-payment-history',
30
+ 'dd-transloading-payment-history',
31
+ 'bonds-payment-history',
32
+ 'fcl-transloading-payment-history',
33
+ 'trucking-payment-history',
34
+ 'lcl-transloading-payment-history',
35
+ ]) {
36
+ exports.paymentHistoryBaseSchema.discriminator(key, paymentHistoryDiscriminatorSchema);
37
+ }
42
38
  //# sourceMappingURL=payment-history.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-history.model.js","sourceRoot":"","sources":["../../../src/schemas/payment-history/payment-history.model.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAG5B,QAAA,wBAAwB,GAAG,IAAI,iBAAM,CAAwB;IACxE,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3E,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE;IAChF,cAAc,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,cAAc,EAAE;IACpE,OAAO,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE;IACvD,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE;IACrD,UAAU,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE;IAC7D,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;IACpD,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5B,gBAAgB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;CACpD,EAAE;IACD,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,MAAM;CACzB,CAAC,CAAC;AAEH,MAAM,iCAAiC,GAAG,IAAI,iBAAM,CAAC;IACnD,OAAO,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK,EAAE;IACrC,sBAAsB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACzC,UAAU,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK,EAAE;CACzC,CAAC,CAAC;AAEU,QAAA,qCAAqC,GAA2B;IAC3E,6BAA6B,EAAE,iCAAiC;IAChE,qBAAqB,EAAE,iCAAiC;IACxD,qBAAqB,EAAE,iCAAiC;IACxD,oBAAoB,EAAE,iCAAiC;IACvD,iCAAiC,EAAE,iCAAiC;IACpE,uBAAuB,EAAE,iCAAiC;IAC1D,kCAAkC,EAAE,iCAAiC;IACrE,0BAA0B,EAAE,iCAAiC;IAC7D,kCAAkC,EAAE,iCAAiC;CACtE,CAAC;AAEK,MAAM,oCAAoC,GAAG,CAAC,KAAmC,EAAE,EAAE;IAC1F,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,6CAAqC,CAAC,EAAE,CAAC;QAClF,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;AACH,CAAC,CAAC;AAJW,QAAA,oCAAoC,wCAI/C"}
1
+ {"version":3,"file":"payment-history.model.js","sourceRoot":"","sources":["../../../src/schemas/payment-history/payment-history.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGrB,QAAA,wBAAwB,GAAG,IAAI,iBAAM,CAAwB;IACxE,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3E,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,Q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;CACnC,EAAE,CAAC;IACF,gCAAwB,CAAC,aAAa,CAAC,GAAG,EAAE,iCAAiC,CAAC,CAAC;AACjF,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Schema, Model } from 'mongoose';
1
+ import { Schema } from 'mongoose';
2
2
  import { IPaymentStatus } from './payment.interface';
3
- export declare const paymentStatusSchema: Schema<IPaymentStatus, Model<IPaymentStatus, any, any, any, import("mongoose").Document<unknown, any, IPaymentStatus, any, {}> & IPaymentStatus & Required<{
3
+ export declare const paymentStatusSchema: Schema<IPaymentStatus, import("mongoose").Model<IPaymentStatus, any, any, any, import("mongoose").Document<unknown, any, IPaymentStatus, any, {}> & IPaymentStatus & Required<{
4
4
  _id: import("mongoose").Types.ObjectId;
5
5
  }> & {
6
6
  __v: number;
@@ -9,7 +9,7 @@ export declare const paymentStatusSchema: Schema<IPaymentStatus, Model<IPaymentS
9
9
  }> & {
10
10
  __v: number;
11
11
  }>;
12
- export declare const paymentDiscriminatorSchema: Schema<any, Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
12
+ export declare const paymentDiscriminatorSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
13
13
  charges: import("mongoose").Types.DocumentArray<{
14
14
  entityInformation: import("mongoose").Types.DocumentArray<{
15
15
  containerNumbers: string[];
@@ -431,6 +431,4 @@ export declare const paymentDiscriminatorSchema: Schema<any, Model<any, any, any
431
431
  } & {
432
432
  __v: number;
433
433
  }>;
434
- export declare const PAYMENT_DISCRIMINATORS: readonly ["air_freight-payment", "lcl-payment", "fcl-payment", "dd-payment", "dd-transloading-payment", "bonds-payment", "fcl-transloading-payment", "trucking-payment", "lcl-transloading-payment"];
435
- export declare const initiatePaymentDiscriminators: (model: Model<IPaymentStatus>) => void;
436
434
  //# sourceMappingURL=payment.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/payments/payment.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,eAAO,MAAM,mBAAmB;;;;;;;;EAY9B,CAAC;AAmCH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,sBAAsB,sMAUzB,CAAC;AAEX,eAAO,MAAM,6BAA6B,GAAI,OAAO,KAAK,CAAC,cAAc,CAAC,SAIzE,CAAC"}
1
+ {"version":3,"file":"payment.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/payments/payment.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,eAAO,MAAM,mBAAmB;;;;;;;;EAY9B,CAAC;AAmCH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initiatePaymentDiscriminators = exports.PAYMENT_DISCRIMINATORS = exports.paymentDiscriminatorSchema = exports.paymentStatusSchema = void 0;
3
+ exports.paymentDiscriminatorSchema = exports.paymentStatusSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  exports.paymentStatusSchema = new mongoose_1.Schema({
6
6
  bookingId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Bookings', required: true },
@@ -50,7 +50,7 @@ exports.paymentDiscriminatorSchema = new mongoose_1.Schema({
50
50
  billingEntityConfirmed: { type: Boolean },
51
51
  customDuty: [customDutySchema],
52
52
  });
53
- exports.PAYMENT_DISCRIMINATORS = [
53
+ for (const key of [
54
54
  'air_freight-payment',
55
55
  'lcl-payment',
56
56
  'fcl-payment',
@@ -60,11 +60,7 @@ exports.PAYMENT_DISCRIMINATORS = [
60
60
  'fcl-transloading-payment',
61
61
  'trucking-payment',
62
62
  'lcl-transloading-payment',
63
- ];
64
- const initiatePaymentDiscriminators = (model) => {
65
- for (const key of exports.PAYMENT_DISCRIMINATORS) {
66
- model.discriminator(key, exports.paymentDiscriminatorSchema);
67
- }
68
- };
69
- exports.initiatePaymentDiscriminators = initiatePaymentDiscriminators;
63
+ ]) {
64
+ exports.paymentStatusSchema.discriminator(key, exports.paymentDiscriminatorSchema);
65
+ }
70
66
  //# sourceMappingURL=payment.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment.model.js","sourceRoot":"","sources":["../../../src/schemas/payments/payment.model.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAG5B,QAAA,mBAAmB,GAAG,IAAI,iBAAM,CAAiB;IAC5D,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3E,cAAc,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,cAAc,EAAE;IACpE,OAAO,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE;IACvD,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE;IACrD,UAAU,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE;IAC7D,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;IACpD,wBAAwB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;IAC3D,6BAA6B,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE;CAC5D,EAAE;IACD,gBAAgB,EAAE,MAAM;IACxB,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,IAAI,iBAAM,CAAC;IACzC,QAAQ,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAA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C,CAAC;AAEH,MAAM,gBAAgB,GAAG,IAAI,iBAAM,CAAC;IAClC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACvB,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,kBAAkB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACpC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1B,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC7B,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5B,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CACjC,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,IAAI,iBAAM,CAAC;IACnD,OAAO,EAAE,CAAC,YAAY,CAAC;IACvB,sBAAsB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACzC,UAAU,EAAE,CAAC,gBAAgB,CAAC;CAC/B,CAAC,CAAC;AAEH,KAAK,MAAM,GAAG,IAAI;IAChB,qBAAqB;IACrB,aAAa;IACb,aAAa;IACb,YAAY;IACZ,yBAAyB;IACzB,eAAe;IACf,0BAA0B;IAC1B,kBAAkB;IAClB,0BAA0B;CAC3B,EAAE,CAAC;IACF,2BAAmB,CAAC,aAAa,CAAC,GAAG,EAAE,kCAA0B,CAAC,CAAC;AACrE,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Schema, Model } from 'mongoose';
1
+ import { Schema } from 'mongoose';
2
2
  import { IProposalHistoryRecord } from './proposal-history.interface';
3
- export declare const proposalHistoryBaseSchema: Schema<IProposalHistoryRecord, Model<IProposalHistoryRecord, any, any, any, import("mongoose").Document<unknown, any, IProposalHistoryRecord, any, {}> & IProposalHistoryRecord & Required<{
3
+ export declare const proposalHistoryBaseSchema: Schema<IProposalHistoryRecord, import("mongoose").Model<IProposalHistoryRecord, any, any, any, import("mongoose").Document<unknown, any, IProposalHistoryRecord, any, {}> & IProposalHistoryRecord & Required<{
4
4
  _id: import("mongoose").Types.ObjectId;
5
5
  }> & {
6
6
  __v: number;
@@ -9,6 +9,4 @@ export declare const proposalHistoryBaseSchema: Schema<IProposalHistoryRecord, M
9
9
  }> & {
10
10
  __v: number;
11
11
  }>;
12
- export declare const PROPOSAL_HISTORY_DISCRIMINATOR_SCHEMAS: Record<string, Schema>;
13
- export declare const initiateProposalHistoryDiscriminators: (model: Model<IProposalHistoryRecord>) => void;
14
12
  //# sourceMappingURL=proposal-history.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"proposal-history.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/proposal-history/proposal-history.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,eAAO,MAAM,yBAAyB;;;;;;;;EA0CpC,CAAC;AAEH,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwCzE,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAAI,OAAO,KAAK,CAAC,sBAAsB,CAAC,SAIzF,CAAC"}
1
+ {"version":3,"file":"proposal-history.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/proposal-history/proposal-history.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,eAAO,MAAM,yBAAyB;;;;;;;;EA0CpC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initiateProposalHistoryDiscriminators = exports.PROPOSAL_HISTORY_DISCRIMINATOR_SCHEMAS = exports.proposalHistoryBaseSchema = void 0;
3
+ exports.proposalHistoryBaseSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  exports.proposalHistoryBaseSchema = new mongoose_1.Schema({
6
6
  quoteId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Quotes', required: true },
@@ -45,51 +45,43 @@ exports.proposalHistoryBaseSchema = new mongoose_1.Schema({
45
45
  timestamps: true,
46
46
  discriminatorKey: 'kind',
47
47
  });
48
- exports.PROPOSAL_HISTORY_DISCRIMINATOR_SCHEMAS = {
49
- 'fcl-proposal-history': new mongoose_1.Schema({
50
- isAccessorialAdded: { type: Boolean },
51
- accessorialChargeName: { type: String },
52
- accessorialCharge: { type: mongoose_1.Schema.Types.Mixed },
53
- }),
54
- 'lcl-proposal-history': new mongoose_1.Schema({
55
- consolDesireGMPercentage: { type: Number },
56
- gateInDate: { type: Date },
57
- perCBMRate: { type: Number },
58
- lclType: { type: String, enum: ['lcl-console', 'lcl-coload'] },
59
- lclConsoleNumber: { type: String },
60
- consoleSailingdate: { type: Date },
61
- chargeSplitPercentage: { type: Number },
62
- isFinalCBM: { type: Boolean },
63
- partnerRateCardId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ConsolRate' },
64
- isAccessorialAdded: { type: Boolean },
65
- accessorialChargeName: { type: String },
66
- accessorialCharge: { type: mongoose_1.Schema.Types.Mixed },
67
- }),
68
- 'lcl-transloading-proposal-history': new mongoose_1.Schema({
69
- consolDesireGMPercentage: { type: Number },
70
- gateInDate: { type: Date },
71
- perCBMRate: { type: Number },
72
- lclType: { type: String, enum: ['lcl-console', 'lcl-coload'] },
73
- lclConsoleNumber: { type: String },
74
- consoleSailingdate: { type: Date },
75
- chargeSplitPercentage: { type: Number },
76
- isFinalCBM: { type: Boolean },
77
- partnerRateCardId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ConsolRate' },
78
- }),
79
- 'air_freight-proposal-history': new mongoose_1.Schema({
80
- isOversizeShipment: { type: Boolean },
81
- offlineRateIncrement: { type: Number },
82
- }),
83
- 'bonds-proposal-history': new mongoose_1.Schema({}),
84
- 'dd-proposal-history': new mongoose_1.Schema({}),
85
- 'dd-transloading-proposal-history': new mongoose_1.Schema({}),
86
- 'trucking-proposal-history': new mongoose_1.Schema({}),
87
- 'fcl-transloading-proposal-history': new mongoose_1.Schema({}),
88
- };
89
- const initiateProposalHistoryDiscriminators = (model) => {
90
- for (const [key, schema] of Object.entries(exports.PROPOSAL_HISTORY_DISCRIMINATOR_SCHEMAS)) {
91
- model.discriminator(key, schema);
92
- }
93
- };
94
- exports.initiateProposalHistoryDiscriminators = initiateProposalHistoryDiscriminators;
48
+ exports.proposalHistoryBaseSchema.discriminator('fcl-proposal-history', new mongoose_1.Schema({
49
+ isAccessorialAdded: { type: Boolean },
50
+ accessorialChargeName: { type: String },
51
+ accessorialCharge: { type: mongoose_1.Schema.Types.Mixed },
52
+ }));
53
+ exports.proposalHistoryBaseSchema.discriminator('lcl-proposal-history', new mongoose_1.Schema({
54
+ consolDesireGMPercentage: { type: Number },
55
+ gateInDate: { type: Date },
56
+ perCBMRate: { type: Number },
57
+ lclType: { type: String, enum: ['lcl-console', 'lcl-coload'] },
58
+ lclConsoleNumber: { type: String },
59
+ consoleSailingdate: { type: Date },
60
+ chargeSplitPercentage: { type: Number },
61
+ isFinalCBM: { type: Boolean },
62
+ partnerRateCardId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ConsolRate' },
63
+ isAccessorialAdded: { type: Boolean },
64
+ accessorialChargeName: { type: String },
65
+ accessorialCharge: { type: mongoose_1.Schema.Types.Mixed },
66
+ }));
67
+ exports.proposalHistoryBaseSchema.discriminator('lcl-transloading-proposal-history', new mongoose_1.Schema({
68
+ consolDesireGMPercentage: { type: Number },
69
+ gateInDate: { type: Date },
70
+ perCBMRate: { type: Number },
71
+ lclType: { type: String, enum: ['lcl-console', 'lcl-coload'] },
72
+ lclConsoleNumber: { type: String },
73
+ consoleSailingdate: { type: Date },
74
+ chargeSplitPercentage: { type: Number },
75
+ isFinalCBM: { type: Boolean },
76
+ partnerRateCardId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ConsolRate' },
77
+ }));
78
+ exports.proposalHistoryBaseSchema.discriminator('air_freight-proposal-history', new mongoose_1.Schema({
79
+ isOversizeShipment: { type: Boolean },
80
+ offlineRateIncrement: { type: Number },
81
+ }));
82
+ exports.proposalHistoryBaseSchema.discriminator('bonds-proposal-history', new mongoose_1.Schema({}));
83
+ exports.proposalHistoryBaseSchema.discriminator('dd-proposal-history', new mongoose_1.Schema({}));
84
+ exports.proposalHistoryBaseSchema.discriminator('dd-transloading-proposal-history', new mongoose_1.Schema({}));
85
+ exports.proposalHistoryBaseSchema.discriminator('trucking-proposal-history', new mongoose_1.Schema({}));
86
+ exports.proposalHistoryBaseSchema.discriminator('fcl-transloading-proposal-history', new mongoose_1.Schema({}));
95
87
  //# sourceMappingURL=proposal-history.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"proposal-history.model.js","sourceRoot":"","sources":["../../../src/schemas/proposal-history/proposal-history.model.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAG5B,QAAA,yBAAyB,GAAG,IAAI,iBAAM,CAAyB;IAC1E,OAAO,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvE,cAAc,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE;IACpF,UAAU,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACxE,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;IACrE,UAAU,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KA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QAClC,qBAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACvC,UAAU,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;QAC7B,iBAAiB,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,YAAY,EAAE;KACtE,CAAC;IACF,8BAA8B,EAAE,IAAI,iBAAM,CAAC;QACzC,kBAAkB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;QACrC,oBAAoB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;KACvC,CAAC;IACF,wBAAwB,EAAE,IAAI,iBAAM,CAAC,EAAE,CAAC;IACxC,qBAAqB,EAAE,IAAI,iBAAM,CAAC,EAAE,CAAC;IACrC,kCAAkC,EAAE,IAAI,iBAAM,CAAC,EAAE,CAAC;IAClD,2BAA2B,EAAE,IAAI,iBAAM,CAAC,EAAE,CAAC;IAC3C,mCAAmC,EAAE,IAAI,iBAAM,CAAC,EAAE,CAAC;CACpD,CAAC;AAEK,MAAM,qCAAqC,GAAG,CAAC,KAAoC,EAAE,EAAE;IAC5F,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,8CAAsC,CAAC,EAAE,CAAC;QACnF,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;AACH,CAAC,CAAC;AAJW,QAAA,qCAAqC,yCAIhD"}
1
+ {"version":3,"file":"proposal-history.model.js","sourceRoot":"","sources":["../../../src/schemas/proposal-history/proposal-history.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGrB,QAAA,yBAAyB,GAAG,IAAI,iBAAM,CAAyB;IAC1E,OAAO,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvE,cAAc,EAAE,EAAE,IAAI,EAAE,i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C,CAAC,CAAC;AACrF,iCAAyB,CAAC,aAAa,CAAC,mCAAmC,EAAE,IAAI,iBAAM,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -9,6 +9,4 @@ export declare const proposalSchema: Schema<IProposal, Model<IProposal, {}, IPro
9
9
  }> & {
10
10
  __v: number;
11
11
  }>;
12
- export declare const PROPOSAL_DISCRIMINATOR_SCHEMAS: Record<string, Schema>;
13
- export declare const initiateProposalDiscriminators: (model: Model<IProposal>) => void;
14
12
  //# sourceMappingURL=proposal.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"proposal.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/proposals/proposal.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAyDnE,eAAO,MAAM,cAAc;;;;;;;;EAgEzB,CAAC;AA6BH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4DjE,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,OAAO,KAAK,CAAC,SAAS,CAAC,SAIrE,CAAC"}
1
+ {"version":3,"file":"proposal.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/proposals/proposal.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAyDnE,eAAO,MAAM,cAAc;;;;;;;;EAgEzB,CAAC"}