@tstdl/base 0.92.143 → 0.92.144

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.
@@ -135,7 +135,6 @@ export declare const documentManagementApiDefinition: {
135
135
  scope: string | string[];
136
136
  };
137
137
  };
138
- tags: string[];
139
138
  uploadId: string;
140
139
  properties?: {
141
140
  propertyId: import("../../orm/schemas/uuid.js").Uuid;
@@ -144,6 +143,7 @@ export declare const documentManagementApiDefinition: {
144
143
  attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
145
144
  }> | undefined;
146
145
  }[] | undefined;
146
+ tags?: string[] | undefined;
147
147
  metadata?: Partial<{
148
148
  attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
149
149
  }> | undefined;
@@ -526,7 +526,6 @@ declare const _DocumentManagementApi: import("../../api/client/index.js").ApiCli
526
526
  scope: string | string[];
527
527
  };
528
528
  };
529
- tags: string[];
530
529
  uploadId: string;
531
530
  properties?: {
532
531
  propertyId: import("../../orm/schemas/uuid.js").Uuid;
@@ -535,6 +534,7 @@ declare const _DocumentManagementApi: import("../../api/client/index.js").ApiCli
535
534
  attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
536
535
  }> | undefined;
537
536
  }[] | undefined;
537
+ tags?: string[] | undefined;
538
538
  metadata?: Partial<{
539
539
  attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
540
540
  }> | undefined;
@@ -64,7 +64,9 @@ let DocumentService = DocumentService_1 = class DocumentService extends Transact
64
64
  size: -1,
65
65
  metadata,
66
66
  });
67
- await this.#documentTagService.withTransaction(tx).assignTags(document, tags);
67
+ if (isDefined(tags)) {
68
+ await this.#documentTagService.withTransaction(tx).assignTags(document, tags);
69
+ }
68
70
  const [documentMetadata, content] = isUpload
69
71
  ? await this.#documentFileService.withTransaction(tx).store(document.id, contentSource)
70
72
  : [await this.#documentFileService.withTransaction(tx).store(document.id, contentSource), contentSource];
@@ -37,7 +37,6 @@ export declare const createDocumentParametersSchema: import("../../schema/index.
37
37
  scope: string | string[];
38
38
  };
39
39
  };
40
- tags: string[];
41
40
  uploadId: string;
42
41
  properties?: {
43
42
  propertyId: import("../../orm/schemas/uuid.js").Uuid;
@@ -46,6 +45,7 @@ export declare const createDocumentParametersSchema: import("../../schema/index.
46
45
  attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
47
46
  }> | undefined;
48
47
  }[] | undefined;
48
+ tags?: string[] | undefined;
49
49
  metadata?: Partial<{
50
50
  attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
51
51
  }> | undefined;
@@ -17,7 +17,7 @@ export const createDocumentParametersSchema = assign(partial(pick(Document, ['ty
17
17
  target: enumeration(DocumentAssignmentTarget),
18
18
  }),
19
19
  })),
20
- tags: array(string()),
20
+ tags: optional(array(string())),
21
21
  properties: optional(array(setDocumentPropertyParametersSchema)),
22
22
  }), metadataParameterObjectSchema);
23
23
  export const updateDocumentParametersSchema = assign(pick(Document, ['id']), partial(pick(Document, ['title', 'subtitle', 'date', 'comment', 'typeId'])), object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.92.143",
3
+ "version": "0.92.144",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"