joist-orm 1.144.7 → 1.144.9

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,15 @@
1
1
  export interface EnumMetadata<C, D, I extends number | string = number | string> {
2
+ /** Returns the enum type's name, i.e. `AuthorStatus`. */
2
3
  name: string;
4
+ /** Gets the `code` details, i.e. `Statuses.getByCode(Status.DRAFT)`. */
3
5
  getByCode(code: C): D;
4
- findByCode(code: C): D | undefined;
6
+ /** Finds a code details for `code`, i.e. `Statuses.findByCode("DRAFT")`, returns `undefined` is not found. */
7
+ findByCode(code: string): D | undefined;
8
+ /** Finds a code details for `id`, i.e. `Statuss.findById(2)`, returns `undefined` is not found. */
5
9
  findById(id: I): D | undefined;
10
+ /** Returns all the codes, i.e. `[Status.DRAFT, Status.PUBLISHED]`. */
6
11
  getValues(): ReadonlyArray<C>;
12
+ /** Returns all the details. */
7
13
  getDetails(): ReadonlyArray<D>;
8
14
  }
9
15
  //# sourceMappingURL=EnumMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnumMetadata.d.ts","sourceRoot":"","sources":["../src/EnumMetadata.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACtB,UAAU,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAC/B,SAAS,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;IAC9B,UAAU,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"EnumMetadata.d.ts","sourceRoot":"","sources":["../src/EnumMetadata.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM;IAC7E,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IAEb,wEAAwE;IACxE,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IAEtB,8GAA8G;IAC9G,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IAExC,mGAAmG;IACnG,QAAQ,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAE/B,sEAAsE;IACtE,SAAS,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;IAE9B,+BAA+B;IAC/B,UAAU,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;CAChC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joist-orm",
3
- "version": "1.144.7",
3
+ "version": "1.144.9",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@types/object-hash": "^3.0.6",
23
23
  "dataloader": "^2.2.2",
24
- "joist-utils": "1.144.7",
24
+ "joist-utils": "1.144.9",
25
25
  "knex": "^3.1.0",
26
26
  "object-hash": "^3.0.0",
27
27
  "pg": "^8.11.3",