@ldsg/types 0.3.43 → 0.3.45

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,9 +1,7 @@
1
1
  import { Manifest } from "./manifest";
2
- export type FileData = string | object;
3
- export type AppDataFileData = FileData | undefined;
4
2
  export interface AppDataFile {
5
3
  path: string;
6
- data: AppDataFileData;
4
+ content: string;
7
5
  }
8
6
  export interface AppData extends Manifest {
9
7
  environmentVariables?: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"app-data.d.ts","sourceRoot":"","sources":["../../src/types/app-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEnD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,OAAQ,SAAQ,QAAQ;IACvC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAC;IACjC,oBAAoB,CAAC,EAAE,WAAW,EAAE,CAAC;CACtC"}
1
+ {"version":3,"file":"app-data.d.ts","sourceRoot":"","sources":["../../src/types/app-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,OAAQ,SAAQ,QAAQ;IACvC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAC;IACjC,oBAAoB,CAAC,EAAE,WAAW,EAAE,CAAC;CACtC"}
@@ -0,0 +1,5 @@
1
+ import { ResourceRecords } from "./resource-record";
2
+ export interface Data {
3
+ resourceRecords: ResourceRecords;
4
+ }
5
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/types/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,IAAI;IACnB,eAAe,EAAE,eAAe,CAAC;CAClC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { Data } from "./data";
2
+ export type ExtraOptions = Record<string, string | number | boolean>;
3
+ export interface GenerateParams {
4
+ data: Data;
5
+ outputPath: string;
6
+ isZip: boolean;
7
+ extraOptions?: ExtraOptions;
8
+ }
9
+ export interface GenerateRes {
10
+ archive: Buffer<ArrayBufferLike>;
11
+ }
12
+ export type Generate = (params: GenerateParams) => Promise<GenerateRes>;
13
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/types/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAErE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;CAClC;AAED,MAAM,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { Generate } from "./generate";
2
+ export interface Generator {
3
+ generate: Generate;
4
+ }
5
+ //# sourceMappingURL=generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/types/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,9 @@
1
1
  export * from "./app-data";
2
+ export * from "./data";
3
+ export * from "./generate";
4
+ export * from "./generator";
2
5
  export * from "./manifest";
6
+ export * from "./module";
3
7
  export * from "./resource-record";
4
8
  export * from "./resource-settings";
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -15,6 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./app-data"), exports);
18
+ __exportStar(require("./data"), exports);
19
+ __exportStar(require("./generate"), exports);
20
+ __exportStar(require("./generator"), exports);
18
21
  __exportStar(require("./manifest"), exports);
22
+ __exportStar(require("./module"), exports);
19
23
  __exportStar(require("./resource-record"), exports);
20
24
  __exportStar(require("./resource-settings"), exports);
@@ -0,0 +1,13 @@
1
+ export interface ModuleFile {
2
+ path: string;
3
+ content: string;
4
+ }
5
+ export interface ModuleInfo {
6
+ files: ModuleFile[];
7
+ }
8
+ export interface AppModuleInfo extends ModuleInfo {
9
+ }
10
+ export interface HandlerModuleInfo extends ModuleInfo {
11
+ id: string;
12
+ }
13
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/types/module.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;CAAG;AAEpD,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,7 +15,7 @@ export interface ResourceRecord<T extends SpecificResourceSettings = SpecificRes
15
15
  /**
16
16
  * Parent Resource ID
17
17
  */
18
- parentId: string | null;
18
+ parentId?: string | null;
19
19
  /**
20
20
  * Resource Settings
21
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"resource-record.d.ts","sourceRoot":"","sources":["../../src/types/resource-record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB;IAC3F;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB,IACvF,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC"}
1
+ {"version":3,"file":"resource-record.d.ts","sourceRoot":"","sources":["../../src/types/resource-record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB;IAC3F;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB,IACvF,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/types",
3
- "version": "0.3.43",
3
+ "version": "0.3.45",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "wanxger",
@@ -14,6 +14,7 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/jest": "^29.5.2",
17
+ "@types/node": "~26.6.5",
17
18
  "jest": "^29.5.0",
18
19
  "oxfmt": "latest",
19
20
  "oxlint": "latest",