@shushed/helpers 0.0.198-v2-20251117161322 → 0.0.198-v2-20251119102051

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,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "source_url": { "type": "string" }, "last_modified_at": { "type": "string", "format": "date-time" }, "width": { "type": "integer", "minimum": 0 }, "height": { "type": "integer", "minimum": 0 }, "content_type": { "type": "string", "pattern": "^[a-z0-9-/]+$" }, "file_name": { "type": "string", "pattern": "^[a-z0-9-.]+$" } }, "required": ["source_url", "content_type", "last_modified_at"], "$id": "https://shushed.example.com/asset.json" };
3
+ const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "product_id": { "type": "string" }, "dash_id": { "type": "string" }, "dash_folder_path": { "type": "string" }, "source_url": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "last_modified_at": { "type": "string", "format": "date-time" }, "width": { "type": "integer", "minimum": 0 }, "height": { "type": "integer", "minimum": 0 }, "meta": { "type": "object", "additionalProperties": true }, "content_type": { "type": "string", "pattern": "^[a-z0-9-/]+$" }, "file_name": { "type": "string", "pattern": "^[a-z0-9-.]+$" } }, "required": ["source_url", "content_type", "last_modified_at"], "$id": "https://shushed.example.com/asset.json" };
4
4
  exports.default = schema;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Development Colour", "type": "object", "additionalProperties": false, "properties": { "colour_id": { "type": "string" }, "name": { "type": ["string", "null"] }, "rgb": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "cmyk": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "pantone": { "anyOf": [{ "type": "null" }, { "type": "object", "properties": { "name": { "type": "string" }, "system": { "type": "string", "pattern": "^[A-Z0-9-]+$" }, "id": { "type": "string", "pattern": "^[A-Z0-9-]+$" } } }] }, "display_name": { "type": ["string", "null"], "pattern": "^[ a-z-]+$" }, "family_display_name": { "type": ["string", "null"], "pattern": "^[ a-z]+$" }, "source_asset": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "source_url": { "type": "string" }, "last_modified_at": { "type": "string", "format": "date-time" }, "width": { "type": "integer", "minimum": 0 }, "height": { "type": "integer", "minimum": 0 }, "content_type": { "type": "string", "pattern": "^[a-z0-9-/]+$" }, "file_name": { "type": "string", "pattern": "^[a-z0-9-.]+$" } }, "required": ["source_url", "content_type", "last_modified_at"] } }, "required": ["colour_id"], "$id": "https://shushed.example.com/development-colour.schema.json" };
3
+ const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Development Colour", "type": "object", "additionalProperties": false, "properties": { "colour_id": { "type": "string" }, "name": { "type": ["string", "null"] }, "rgb": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "cmyk": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "pantone": { "anyOf": [{ "type": "null" }, { "type": "object", "properties": { "name": { "type": "string" }, "system": { "type": "string", "pattern": "^[A-Z0-9-]+$" }, "id": { "type": "string", "pattern": "^[A-Z0-9-]+$" } } }] }, "display_name": { "type": ["string", "null"], "pattern": "^[ a-z-]+$" }, "family_display_name": { "type": ["string", "null"], "pattern": "^[ a-z]+$" }, "source_asset": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "product_id": { "type": "string" }, "dash_id": { "type": "string" }, "dash_folder_path": { "type": "string" }, "source_url": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "last_modified_at": { "type": "string", "format": "date-time" }, "width": { "type": "integer", "minimum": 0 }, "height": { "type": "integer", "minimum": 0 }, "meta": { "type": "object", "additionalProperties": true }, "content_type": { "type": "string", "pattern": "^[a-z0-9-/]+$" }, "file_name": { "type": "string", "pattern": "^[a-z0-9-.]+$" } }, "required": ["source_url", "content_type", "last_modified_at"] } }, "required": ["colour_id"], "$id": "https://shushed.example.com/development-colour.schema.json" };
4
4
  exports.default = schema;
@@ -4,9 +4,22 @@ declare const schema: {
4
4
  readonly type: "object";
5
5
  readonly additionalProperties: false;
6
6
  readonly properties: {
7
+ readonly product_id: {
8
+ readonly type: "string";
9
+ };
10
+ readonly dash_id: {
11
+ readonly type: "string";
12
+ };
13
+ readonly dash_folder_path: {
14
+ readonly type: "string";
15
+ };
7
16
  readonly source_url: {
8
17
  readonly type: "string";
9
18
  };
19
+ readonly created_at: {
20
+ readonly type: "string";
21
+ readonly format: "date-time";
22
+ };
10
23
  readonly last_modified_at: {
11
24
  readonly type: "string";
12
25
  readonly format: "date-time";
@@ -19,6 +32,10 @@ declare const schema: {
19
32
  readonly type: "integer";
20
33
  readonly minimum: 0;
21
34
  };
35
+ readonly meta: {
36
+ readonly type: "object";
37
+ readonly additionalProperties: true;
38
+ };
22
39
  readonly content_type: {
23
40
  readonly type: "string";
24
41
  readonly pattern: "^[a-z0-9-/]+$";
@@ -64,9 +64,22 @@ declare const schema: {
64
64
  readonly type: "object";
65
65
  readonly additionalProperties: false;
66
66
  readonly properties: {
67
+ readonly product_id: {
68
+ readonly type: "string";
69
+ };
70
+ readonly dash_id: {
71
+ readonly type: "string";
72
+ };
73
+ readonly dash_folder_path: {
74
+ readonly type: "string";
75
+ };
67
76
  readonly source_url: {
68
77
  readonly type: "string";
69
78
  };
79
+ readonly created_at: {
80
+ readonly type: "string";
81
+ readonly format: "date-time";
82
+ };
70
83
  readonly last_modified_at: {
71
84
  readonly type: "string";
72
85
  readonly format: "date-time";
@@ -79,6 +92,10 @@ declare const schema: {
79
92
  readonly type: "integer";
80
93
  readonly minimum: 0;
81
94
  };
95
+ readonly meta: {
96
+ readonly type: "object";
97
+ readonly additionalProperties: true;
98
+ };
82
99
  readonly content_type: {
83
100
  readonly type: "string";
84
101
  readonly pattern: "^[a-z0-9-/]+$";
@@ -1,8 +1,15 @@
1
1
  export interface __MainSchema {
2
+ product_id?: string;
3
+ dash_id?: string;
4
+ dash_folder_path?: string;
2
5
  source_url: string;
6
+ created_at?: string;
3
7
  last_modified_at: string;
4
8
  width?: number;
5
9
  height?: number;
10
+ meta?: {
11
+ [k: string]: unknown;
12
+ };
6
13
  content_type: string;
7
14
  file_name?: string;
8
15
  }
@@ -14,10 +14,17 @@ export interface __MainSchema {
14
14
  source_asset?: Asset;
15
15
  }
16
16
  export interface Asset {
17
+ product_id?: string;
18
+ dash_id?: string;
19
+ dash_folder_path?: string;
17
20
  source_url: string;
21
+ created_at?: string;
18
22
  last_modified_at: string;
19
23
  width?: number;
20
24
  height?: number;
25
+ meta?: {
26
+ [k: string]: unknown;
27
+ };
21
28
  content_type: string;
22
29
  file_name?: string;
23
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.198-v2-20251117161322",
3
+ "version": "0.0.198-v2-20251119102051",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",