kcommons 5.14.8 → 5.14.10

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.
@@ -0,0 +1,18 @@
1
+ export declare const MEDIA_UPLOAD_BASES: {
2
+ item: {
3
+ /** Followed by {company_id}/{item_id}/{file_name} */
4
+ image: string;
5
+ /** Followed by {company_id}/{item_id}/{file_name} */
6
+ attachment: string;
7
+ };
8
+ users: {
9
+ /** Followed by {company_id}/{user_id}/{filename} */
10
+ profile: string;
11
+ };
12
+ rfq: {
13
+ rfq_items: {
14
+ /** Followed by {company_id}/{rfq_id}/{rfq_item_id}/{filename} */
15
+ attachment: string;
16
+ };
17
+ };
18
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MEDIA_UPLOAD_BASES = void 0;
4
+ exports.MEDIA_UPLOAD_BASES = {
5
+ item: {
6
+ /** Followed by {company_id}/{item_id}/{file_name} */
7
+ image: "items/display_image",
8
+ /** Followed by {company_id}/{item_id}/{file_name} */
9
+ attachment: "attachments/items",
10
+ },
11
+ users: {
12
+ /** Followed by {company_id}/{user_id}/{filename} */
13
+ profile: "/users/profile",
14
+ },
15
+ rfq: {
16
+ rfq_items: {
17
+ /** Followed by {company_id}/{rfq_id}/{rfq_item_id}/{filename} */
18
+ attachment: "attachments/rfq/rfq_item",
19
+ },
20
+ },
21
+ };
package/build/index.d.ts CHANGED
@@ -36,5 +36,6 @@ export * from "./constants/permission.constants";
36
36
  export * from "./constants/entityTypes.constants";
37
37
  export * from "./constants/documentStatus.typings";
38
38
  export * from "./constants/form.constants";
39
+ export * from "./constants/upload.constants";
39
40
  export * from "./classes/asnWrapper.class";
40
41
  export * from "./utils/permission.utils";
package/build/index.js CHANGED
@@ -54,6 +54,7 @@ __exportStar(require("./constants/permission.constants"), exports);
54
54
  __exportStar(require("./constants/entityTypes.constants"), exports);
55
55
  __exportStar(require("./constants/documentStatus.typings"), exports);
56
56
  __exportStar(require("./constants/form.constants"), exports);
57
+ __exportStar(require("./constants/upload.constants"), exports);
57
58
  // Classes
58
59
  __exportStar(require("./classes/asnWrapper.class"), exports);
59
60
  // Utils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.14.8",
3
+ "version": "5.14.10",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",