@bharatbxhipment/xhipment-models-v2 1.0.54 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from "./schemas/amsIsfFiling/ams-isf-filing.timeline.model";
8
8
  export * from "./schemas/call-center/call-center.model";
9
9
  export * from "./schemas/comms-hub/comms-hub.model";
10
10
  export * from "./schemas/cogs-gm/cogs-gm.model";
11
+ export * from "./schemas/exchangeRate/exchange-rate.model";
11
12
  export * from "./schemas/container-meta-data/container-meta-data.type";
12
13
  export * from "./schemas/countries/countries.interface";
13
14
  export * from "./schemas/billing-entities/billing-entities.interface";
@@ -18,4 +19,5 @@ export * from "./schemas/amsIsfFiling/ams-isf-filing.timeline.interface";
18
19
  export * from "./schemas/call-center/call-center.interface";
19
20
  export * from "./schemas/comms-hub/comms-hub.interface";
20
21
  export * from "./schemas/cogs-gm/cogs-gm.interface";
22
+ export * from "./schemas/exchangeRate/exchange-rate.interface";
21
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,yDAAyD,CAAC;AACxE,cAAc,mDAAmD,CAAC;AAClE,cAAc,qCAAqC,CAAC;AACpD,cAAc,wDAAwD,CAAC;AACvE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAEhD,cAAc,wDAAwD,CAAC;AACvE,cAAc,yCAAyC,CAAC;AACxD,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,iDAAiD,CAAC;AAChE,cAAc,iCAAiC,CAAC;AAChD,cAAc,0DAA0D,CAAC;AACzE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,yDAAyD,CAAC;AACxE,cAAc,mDAAmD,CAAC;AAClE,cAAc,qCAAqC,CAAC;AACpD,cAAc,wDAAwD,CAAC;AACvE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,wDAAwD,CAAC;AACvE,cAAc,yCAAyC,CAAC;AACxD,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,iDAAiD,CAAC;AAChE,cAAc,iCAAiC,CAAC;AAChD,cAAc,0DAA0D,CAAC;AACzE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gDAAgD,CAAC"}
package/dist/index.js CHANGED
@@ -25,6 +25,7 @@ __exportStar(require("./schemas/amsIsfFiling/ams-isf-filing.timeline.model"), ex
25
25
  __exportStar(require("./schemas/call-center/call-center.model"), exports);
26
26
  __exportStar(require("./schemas/comms-hub/comms-hub.model"), exports);
27
27
  __exportStar(require("./schemas/cogs-gm/cogs-gm.model"), exports);
28
+ __exportStar(require("./schemas/exchangeRate/exchange-rate.model"), exports);
28
29
  // Types
29
30
  __exportStar(require("./schemas/container-meta-data/container-meta-data.type"), exports);
30
31
  __exportStar(require("./schemas/countries/countries.interface"), exports);
@@ -36,4 +37,5 @@ __exportStar(require("./schemas/amsIsfFiling/ams-isf-filing.timeline.interface")
36
37
  __exportStar(require("./schemas/call-center/call-center.interface"), exports);
37
38
  __exportStar(require("./schemas/comms-hub/comms-hub.interface"), exports);
38
39
  __exportStar(require("./schemas/cogs-gm/cogs-gm.interface"), exports);
40
+ __exportStar(require("./schemas/exchangeRate/exchange-rate.interface"), exports);
39
41
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,0FAAwE;AACxE,oFAAkE;AAClE,sEAAoD;AACpD,yFAAuE;AACvE,8EAA4D;AAC5D,8DAA4C;AAC5C,uFAAqE;AACrE,0EAAwD;AACxD,sEAAoD;AACpD,kEAAgD;AAChD,QAAQ;AACR,yFAAuE;AACvE,0EAAwD;AACxD,wFAAsE;AACtE,6FAA2E;AAC3E,kFAAgE;AAChE,kEAAgD;AAChD,2FAAyE;AACzE,8EAA4D;AAC5D,0EAAwD;AACxD,sEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,0FAAwE;AACxE,oFAAkE;AAClE,sEAAoD;AACpD,yFAAuE;AACvE,8EAA4D;AAC5D,8DAA4C;AAC5C,uFAAqE;AACrE,0EAAwD;AACxD,sEAAoD;AACpD,kEAAgD;AAChD,6EAA2D;AAC3D,QAAQ;AACR,yFAAuE;AACvE,0EAAwD;AACxD,wFAAsE;AACtE,6FAA2E;AAC3E,kFAAgE;AAChE,kEAAgD;AAChD,2FAAyE;AACzE,8EAA4D;AAC5D,0EAAwD;AACxD,sEAAoD;AACpD,iFAA+D"}
@@ -0,0 +1,13 @@
1
+ import mongoose from "mongoose";
2
+ export interface IExchangeRate {
3
+ _id?: mongoose.Types.ObjectId;
4
+ currency: string;
5
+ amazonExchangeRate: number;
6
+ shipperExchangeRate: number;
7
+ isActive: boolean;
8
+ createdBy: mongoose.Types.ObjectId;
9
+ updatedBy?: mongoose.Types.ObjectId;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ }
13
+ //# sourceMappingURL=exchange-rate.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange-rate.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/exchangeRate/exchange-rate.interface.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACnC,SAAS,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACpC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=exchange-rate.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange-rate.interface.js","sourceRoot":"","sources":["../../../src/schemas/exchangeRate/exchange-rate.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Schema } from 'mongoose';
2
+ import { IExchangeRate } from './exchange-rate.interface';
3
+ export declare const exchangeRateSchema: Schema<IExchangeRate, import("mongoose").Model<IExchangeRate, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IExchangeRate>;
4
+ //# sourceMappingURL=exchange-rate.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange-rate.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/exchangeRate/exchange-rate.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,eAAO,MAAM,kBAAkB,4JA4B7B,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.exchangeRateSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.exchangeRateSchema = new mongoose_1.Schema({
6
+ currency: {
7
+ type: String,
8
+ required: true
9
+ },
10
+ amazonExchangeRate: {
11
+ type: Number,
12
+ required: true
13
+ },
14
+ shipperExchangeRate: {
15
+ type: Number,
16
+ required: true
17
+ },
18
+ isActive: {
19
+ type: Boolean,
20
+ default: true
21
+ },
22
+ createdBy: {
23
+ type: mongoose_1.Schema.Types.ObjectId,
24
+ ref: 'Employee',
25
+ required: true
26
+ },
27
+ updatedBy: {
28
+ type: mongoose_1.Schema.Types.ObjectId,
29
+ ref: 'Employee'
30
+ }
31
+ }, {
32
+ timestamps: true
33
+ });
34
+ exports.exchangeRateSchema.index({ currency: 1 });
35
+ //# sourceMappingURL=exchange-rate.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange-rate.model.js","sourceRoot":"","sources":["../../../src/schemas/exchangeRate/exchange-rate.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGrB,QAAA,kBAAkB,GAAG,IAAI,iBAAM,CAAgB;IACxD,QAAQ,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACjB;IACD,kBAAkB,EAAE;QAChB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACjB;IACD,mBAAmB,EAAE;QACjB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACjB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KAChB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,IAAI;KACjB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,GAAG,EAAE,UAAU;KAClB;CACJ,EAAE;IACC,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,0BAAkB,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bharatbxhipment/xhipment-models-v2",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "Mongoose schemas and TypeScript types for Xhipment application",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",