digicust_types 1.7.451 → 1.7.453

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.
@@ -0,0 +1,16 @@
1
+ import { AddressModel } from "../measures";
2
+ export interface CacheModel {
3
+ id?: string;
4
+ service?: "google-maps-geolocation" | "openai-gpt" | "amazon-maps" | "ec-eori-validation" | "ec-vat-validation";
5
+ /** The query sent to the service to retrieve a certain output. This is the 'cache key'.
6
+ * If query is an object, then JSON.stringify it.
7
+ */
8
+ query?: string;
9
+ /** The output of the service */
10
+ value?: any;
11
+ }
12
+ export interface GoogleMapsGeolocationCacheModel extends CacheModel {
13
+ service?: "google-maps-geolocation";
14
+ query?: string;
15
+ value?: AddressModel;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./cache.model";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cache.model"), exports);
@@ -108,6 +108,7 @@ export interface ExecutionStrategy {
108
108
  noDocumentsOnHead?: boolean;
109
109
  packagesOnFirstLineItemOnly?: boolean;
110
110
  aggregateItems?: boolean;
111
+ template?: string;
111
112
  };
112
113
  } | {
113
114
  active?: boolean;
@@ -130,6 +131,7 @@ export interface ExecutionStrategy {
130
131
  "user-name"?: string;
131
132
  password?: string;
132
133
  endpoint?: string;
134
+ template?: string;
133
135
  };
134
136
  };
135
137
  events: Event[];
@@ -25,3 +25,4 @@ export * from "./transportation";
25
25
  export * from "./user";
26
26
  export * from "./codes";
27
27
  export * from "./read-lock.model";
28
+ export * from "./cache";
@@ -41,3 +41,4 @@ __exportStar(require("./transportation"), exports);
41
41
  __exportStar(require("./user"), exports);
42
42
  __exportStar(require("./codes"), exports);
43
43
  __exportStar(require("./read-lock.model"), exports);
44
+ __exportStar(require("./cache"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.451",
3
+ "version": "1.7.453",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",