@quatrain/cloudwrapper 1.1.12 → 1.1.14

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.
@@ -1,3 +1,4 @@
1
1
  import { Core } from '@quatrain/core';
2
2
  export declare class CloudWrapper extends Core {
3
+ static logger: any;
3
4
  }
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
+ var _a;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.CloudWrapper = void 0;
4
5
  const core_1 = require("@quatrain/core");
5
6
  class CloudWrapper extends core_1.Core {
6
7
  }
7
8
  exports.CloudWrapper = CloudWrapper;
9
+ _a = CloudWrapper;
10
+ CloudWrapper.logger = _a.addLogger('Cloud');
package/lib/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { AbstractCloudWrapper } from './AbstractCloudWrapper';
2
2
  import { CloudWrapper } from './CloudWrapper';
3
3
  import { DatabaseTriggerType } from './types/DatabaseTriggerType';
4
- export { AbstractCloudWrapper, CloudWrapper, DatabaseTriggerType };
4
+ import { StorageTriggerType } from './types/StorageTriggerType';
5
+ import { StorageEventPayloadType } from './types/StorageEventPayloadType';
6
+ export { AbstractCloudWrapper, CloudWrapper, DatabaseTriggerType, StorageTriggerType, StorageEventPayloadType, };
@@ -1,8 +1,6 @@
1
- import { BackendAction } from '@quatrain/backend';
2
- export type DatabaseTriggerType = {
3
- name: string;
4
- event: BackendAction | BackendAction[];
1
+ import { GenericTriggerType } from './GenericTriggerType';
2
+ export interface DatabaseTriggerType extends GenericTriggerType {
3
+ schema?: string;
5
4
  model: string;
6
5
  path: string;
7
- script: Function;
8
- };
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface GenericEventPayloadType {
2
+ before: Map<string, any>;
3
+ after: Map<string, any>;
4
+ context: Map<string, any>;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface GenericEventPayloadType {
2
+ before: any;
3
+ after: any;
4
+ context: any;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { BackendAction } from '@quatrain/backend';
2
+ export type GenericTriggerType = {
3
+ name: string;
4
+ event: BackendAction | BackendAction[];
5
+ script: Function;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { GenericEventPayloadType } from './GenericEventPayloadType';
2
+ import { FileType } from '@quatrain/storage';
3
+ export interface StorageEventPayloadType extends GenericEventPayloadType {
4
+ before: FileType | undefined;
5
+ after: FileType | undefined;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { GenericTriggerType } from './GenericTriggerType';
2
+ export interface StorageTriggerType extends GenericTriggerType {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatrain/cloudwrapper",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "license": "MIT",
5
5
  "description": "Cloud wrappers commons",
6
6
  "main": "lib/index.js",
@@ -11,8 +11,8 @@
11
11
  ],
12
12
  "author": "Quatrain Développement SAS <developers@quatrain.com>",
13
13
  "peerDependencies": {
14
- "@quatrain/backend": "^1.1.12",
15
- "@quatrain/core": "^1.1.14"
14
+ "@quatrain/backend": "^1.1.13",
15
+ "@quatrain/core": "^1.1.15"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@tsconfig/recommended": "^1.0.1",
@@ -36,5 +36,8 @@
36
36
  "hash:compare": "yarn hash > .hash_newest.txt && cmp -s .hash_latest.txt .hash_newest.txt",
37
37
  "publish": "yarn hash:compare || yarn publish:process",
38
38
  "publish:process": "yarn version patch && yarn build && yarn npm publish --access public && yarn hash:persist"
39
+ },
40
+ "dependencies": {
41
+ "@quatrain/storage": "^1.1"
39
42
  }
40
43
  }