cityworks 1.0.2 → 1.0.3
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.
- package/dist/activity_link.d.ts +11 -42
- package/dist/index.js.map +1 -1
- package/dist/index.m.js.map +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/activity_link.d.ts
CHANGED
|
@@ -14,15 +14,11 @@ export interface ActivityLink {
|
|
|
14
14
|
*/
|
|
15
15
|
export declare class ActivityLinks implements ActivityLink {
|
|
16
16
|
/**
|
|
17
|
-
* Activity types to map string to number for internal use. Activity types available are:
|
|
18
|
-
*
|
|
19
|
-
* "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
17
|
+
* Activity types to map string to number for internal use. Activity types available are: "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
20
18
|
*/
|
|
21
19
|
activityTypes: ReversibleMap<string, number>;
|
|
22
20
|
/**
|
|
23
|
-
* Link types to map string to number for internal use. Link types available are:
|
|
24
|
-
*
|
|
25
|
-
* "null", "parent", "related"
|
|
21
|
+
* Link types to map string to number for internal use. Link types available are: "null", "parent", "related"
|
|
26
22
|
*/
|
|
27
23
|
linkTypes: ReversibleMap<string, number>;
|
|
28
24
|
/**
|
|
@@ -36,30 +32,18 @@ export declare class ActivityLinks implements ActivityLink {
|
|
|
36
32
|
/**
|
|
37
33
|
* Create a new activity link between two items.
|
|
38
34
|
*
|
|
39
|
-
* @param {string} source_type - Source type as string. Options:
|
|
40
|
-
*
|
|
41
|
-
* "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
42
|
-
*
|
|
35
|
+
* @param {string} source_type - Source type as string. Options: "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
43
36
|
* @param {number} source_sid - Source SID (numeric ID) one wishes to remove a link between SID as source and a particular destination
|
|
44
|
-
* @param {string} destination_type - Destination type as string
|
|
45
|
-
*
|
|
46
|
-
* "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
47
|
-
*
|
|
37
|
+
* @param {string} destination_type - Destination type as string: "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
48
38
|
* @param {number} destination_sid - Destination SID (numeric ID) one wishes to remove a link between SID as destination and a particular source
|
|
49
|
-
* @param {string} link_type - The type of link which exists between provided source and destination. Defaults to `related`. Options:
|
|
50
|
-
*
|
|
51
|
-
* "null", "parent", "related"
|
|
52
|
-
*
|
|
39
|
+
* @param {string} link_type - The type of link which exists between provided source and destination. Defaults to `related`. Options: "null", "parent", "related"
|
|
53
40
|
* @return {Object} Returns Promise object that represents a
|
|
54
41
|
*/
|
|
55
42
|
add(source_type: string, source_sid: number, destination_type: string, destination_sid: number, link_type?: string): Promise<unknown>;
|
|
56
43
|
/**
|
|
57
44
|
* Get the links for a particular node type by ID.
|
|
58
45
|
*
|
|
59
|
-
* @param {string} type - Source type as string. Options:
|
|
60
|
-
*
|
|
61
|
-
* "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
62
|
-
*
|
|
46
|
+
* @param {string} type - Source type as string. Options: "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
63
47
|
* @param {Array<number>} sids - Array of numeric (S)IDs you wish to get of the specified type
|
|
64
48
|
* @return {Object} Returns Promise object that represents a collection
|
|
65
49
|
*/
|
|
@@ -67,15 +51,9 @@ export declare class ActivityLinks implements ActivityLink {
|
|
|
67
51
|
/**
|
|
68
52
|
* Clone a current activity link.
|
|
69
53
|
*
|
|
70
|
-
* @param {string} source_type - Source type as string. Options:
|
|
71
|
-
*
|
|
72
|
-
* "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
73
|
-
*
|
|
54
|
+
* @param {string} source_type - Source type as string. Options: "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
74
55
|
* @param {number} source_sid - Source SID (numeric ID) one wishes to clone a link between SID as source and a particular destination
|
|
75
|
-
* @param {string} destination_type - Destination type as string
|
|
76
|
-
*
|
|
77
|
-
* "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
78
|
-
*
|
|
56
|
+
* @param {string} destination_type - Destination type as string: "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
79
57
|
* @param {number} destination_sid - Destination SID (numeric ID) one wishes to clone a link between SID as destination and a particular source
|
|
80
58
|
* @return {Object} Returns Promise object that represents a
|
|
81
59
|
*/
|
|
@@ -90,20 +68,11 @@ export declare class ActivityLinks implements ActivityLink {
|
|
|
90
68
|
/**
|
|
91
69
|
* Remove a link by specifying everything.
|
|
92
70
|
*
|
|
93
|
-
* @param {string} source_type - Source type as string. Options:
|
|
94
|
-
*
|
|
95
|
-
* "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
96
|
-
*
|
|
71
|
+
* @param {string} source_type - Source type as string. Options: "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
97
72
|
* @param {number} source_sid - Source SID (numeric ID) one wishes to remove a link between SID as source and a particular destination
|
|
98
|
-
* @param {string} destination_type - Destination type as string
|
|
99
|
-
*
|
|
100
|
-
* "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
101
|
-
*
|
|
73
|
+
* @param {string} destination_type - Destination type as string: "null", "case", "inspection", "request", "workorder", "wipcase"
|
|
102
74
|
* @param {number} destination_sid - Destination SID (numeric ID) one wishes to remove a link between SID as destination and a particular source
|
|
103
|
-
* @param {string} link_type - The type of link which exists between provided source and destination. Defaults to `related`. Options:
|
|
104
|
-
*
|
|
105
|
-
* "null", "parent", "related"
|
|
106
|
-
*
|
|
75
|
+
* @param {string} link_type - The type of link which exists between provided source and destination. Defaults to `related`. Options: "null", "parent", "related"
|
|
107
76
|
* @return {Object} Returns Promise object that represents a
|
|
108
77
|
*/
|
|
109
78
|
remove(source_type: string, source_sid: number, destination_type: string, destination_sid: number, link_type?: string): Promise<unknown>;
|