@halix/action-sdk 1.0.24 → 1.0.25

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.
Files changed (52) hide show
  1. package/lib/cjs/content.js +12 -70
  2. package/lib/cjs/data-crud.js +24 -117
  3. package/lib/cjs/index.js +8 -1
  4. package/lib/cjs/lists.js +22 -176
  5. package/lib/cjs/messaging.js +8 -59
  6. package/lib/cjs/preferences.js +75 -0
  7. package/lib/cjs/sdk-general.js +6 -18
  8. package/lib/cjs/types/content.d.ts +12 -70
  9. package/lib/cjs/types/content.d.ts.map +1 -1
  10. package/lib/cjs/types/data-crud.d.ts +24 -117
  11. package/lib/cjs/types/data-crud.d.ts.map +1 -1
  12. package/lib/cjs/types/filter-expressions.d.ts +35 -107
  13. package/lib/cjs/types/filter-expressions.d.ts.map +1 -1
  14. package/lib/cjs/types/index.d.ts +1 -0
  15. package/lib/cjs/types/index.d.ts.map +1 -1
  16. package/lib/cjs/types/lists.d.ts +22 -177
  17. package/lib/cjs/types/lists.d.ts.map +1 -1
  18. package/lib/cjs/types/messaging.d.ts +8 -59
  19. package/lib/cjs/types/messaging.d.ts.map +1 -1
  20. package/lib/cjs/types/preferences.d.ts +17 -0
  21. package/lib/cjs/types/preferences.d.ts.map +1 -0
  22. package/lib/cjs/types/sdk-general.d.ts +23 -78
  23. package/lib/cjs/types/sdk-general.d.ts.map +1 -1
  24. package/lib/cjs/types/utilities.d.ts +9 -29
  25. package/lib/cjs/types/utilities.d.ts.map +1 -1
  26. package/lib/cjs/utilities.js +9 -29
  27. package/lib/esm/content.js +12 -70
  28. package/lib/esm/content.js.map +1 -1
  29. package/lib/esm/data-crud.js +24 -117
  30. package/lib/esm/data-crud.js.map +1 -1
  31. package/lib/esm/index.js.map +1 -1
  32. package/lib/esm/index.mjs +6 -0
  33. package/lib/esm/lists.js +22 -176
  34. package/lib/esm/lists.js.map +1 -1
  35. package/lib/esm/messaging.js +8 -59
  36. package/lib/esm/messaging.js.map +1 -1
  37. package/lib/esm/preferences.js +57 -0
  38. package/lib/esm/preferences.js.map +1 -0
  39. package/lib/esm/sdk-general.js +13 -45
  40. package/lib/esm/sdk-general.js.map +1 -1
  41. package/lib/esm/types/content.d.ts +12 -70
  42. package/lib/esm/types/data-crud.d.ts +24 -117
  43. package/lib/esm/types/filter-expressions.d.ts +35 -107
  44. package/lib/esm/types/index.d.ts +1 -0
  45. package/lib/esm/types/lists.d.ts +22 -177
  46. package/lib/esm/types/messaging.d.ts +8 -59
  47. package/lib/esm/types/preferences.d.ts +16 -0
  48. package/lib/esm/types/sdk-general.d.ts +23 -78
  49. package/lib/esm/types/utilities.d.ts +9 -29
  50. package/lib/esm/utilities.js +9 -29
  51. package/lib/esm/utilities.js.map +1 -1
  52. package/package.json +1 -1
@@ -13,59 +13,37 @@
13
13
  */
14
14
  import { Observable } from 'rxjs';
15
15
  /**
16
- * authToken contains the authentication token that the action handler can use to make API requests
17
- * to Halix web services. This value is set upon calling the initialize function with incoming event
18
- * data.
16
+ * Authentication token for API requests. Set by initialize().
19
17
  */
20
18
  export declare let getAuthToken: () => Observable<string>;
21
19
  /**
22
- * sandboxKey contains the sandbox key identifier; identifies the sandbox that the action handler is
23
- * running in. The sandbox identifies the current solution. This value is set upon calling the
24
- * initialize function with incoming event data.
20
+ * Sandbox key identifier for the current solution. Set by initialize().
25
21
  */
26
22
  export declare let sandboxKey: string;
27
23
  /**
28
- * serviceAddress contains the URL of the Halix service that the action handler can use to make API
29
- * requests to. This value is set upon calling the initialize function with incoming event data.
24
+ * Halix service URL for API requests. Set by initialize().
30
25
  */
31
26
  export declare let serviceAddress: string;
32
27
  /**
33
- * actionSubject contains the identifier of the subject of the action. The subject is the object
34
- * that the action is being performed on. The action subject's contents will differ depending on the
35
- * context in which the action is being executed. This value is set upon calling the initialize
36
- * function with incoming event data.
37
- * - for formTemplateActions, the action subject is the data being edited on the form
38
- * - for pageTemplateActions, the action subject is record containing the context variables and
39
- * their corresponding values on the page
40
- * - for objectSaveActions, the action subject is the object being saved
41
- * - for calculatedFieldActions, the action subject is the object containing the calculated field
42
- * - for singleValueActions, the action subject may differ depending on the caller
28
+ * Subject of the action (context-dependent: form data, page variables, object being saved, etc.). Set by initialize().
43
29
  */
44
30
  export declare let actionSubject: any;
45
31
  /**
46
- * userContext contains the user context information for the user that is executing the action.
47
- * This value is set upon calling the initialize function with incoming event data.
32
+ * User context (user, userProxy, orgProxy, keys). Set by initialize().
48
33
  */
49
34
  export declare let userContext: UserContext;
50
35
  /**
51
- * params contains the parameters passed to the action. If an input dialog is used, params will
52
- * contain the values entered in the dialog. This value is set upon calling the initialize
53
- * function with incoming event data.
36
+ * Parameters passed to the action (e.g., from input dialog). Set by initialize().
54
37
  */
55
38
  export declare let params: string;
56
39
  /**
57
- * useBody is a flag indicating how responses should be formatted. If true, the response will be
58
- * returned as an object with the HTTP response code and ActionResponse in the body field. If false,
59
- * the ActionResponse will be returned directly. Typically, this does not need to be set by the
60
- * action handler and should remain false.
40
+ * Response format flag (internal). Typically leave as false.
61
41
  */
62
42
  export declare let useBody: boolean;
63
43
  /**
64
- * initialize initializes the SDK with event data. This should be called at the beginning of the
65
- * action handler to set up the SDK with incoming information, including context information, input
66
- * parameters, and authentication information needed to make API requests to the Halix service.
44
+ * Initializes SDK with event data. Call at the beginning of action handler to set up authentication, context, and parameters.
67
45
  *
68
- * @param event - The event object containing authentication and context information
46
+ * @param event - Event object with body containing IncomingEventBody
69
47
  */
70
48
  export declare function initialize(event: {
71
49
  body?: IncomingEventBody;
@@ -95,25 +73,14 @@ export interface IncomingEventBody {
95
73
  params: Record<string, any>;
96
74
  }
97
75
  /**
98
- * BaseActionResponse is an interface defining the base properties of an action response.
76
+ * Base properties for action responses. Use specific response types: ListActionResponse, FormTemplateActionResponse, etc.
99
77
  */
100
78
  export interface BaseActionResponse {
101
- /**
102
- * The type of action response
103
- *
104
- * listAction - Use when the action is being run from a list
105
- * formTemplateAction - Use when the action is being run from a form template
106
- * pageTemplateAction - Use when the action is being run from a page template
107
- * objectSaveAction - Use when the action has been specified for use on object save events
108
- * calculatedFieldAction - Use when the action is being used to determine calculated field values
109
- * singleValueAction - Use when the action is being used to determine a single value in specific
110
- * build-in platform events (e.g., determining shopping cart prices)
111
- * error - Use when the action is not successful
112
- */
79
+ /** Response type: listAction, formTemplateAction, pageTemplateAction, objectSaveAction, calculatedFieldAction, singleValueAction, or error */
113
80
  responseType: "listAction" | "formTemplateAction" | "pageTemplateAction" | "objectSaveAction" | "calculatedFieldAction" | "singleValueAction" | "error";
114
81
  /** Whether the action is an error */
115
82
  isError: boolean;
116
- /** Notification configurations; present only if the action should trigger one or more notifications */
83
+ /** Optional notification configurations */
117
84
  notificationConfigs?: NotificationConfig[];
118
85
  }
119
86
  /**
@@ -121,8 +88,7 @@ export interface BaseActionResponse {
121
88
  */
122
89
  export type ActionResponse = ListActionResponse | FormTemplateActionResponse | PageTemplateActionResponse | ObjectSaveActionResponse | CalculatedFieldActionResponse | SingleValueActionResponse;
123
90
  /**
124
- * NotificationConfig is an interface defining a notification that should be triggered by a
125
- * successful action response.
91
+ * Notification configuration for triggering notifications from action responses.
126
92
  */
127
93
  export interface NotificationConfig {
128
94
  /** The ID of a notification definition setup within the solution */
@@ -167,9 +133,7 @@ export interface NotificationConfig {
167
133
  };
168
134
  }
169
135
  /**
170
- * ListActionResponse is an interface defining the properties of a list action response. These
171
- * properties are expected by the list framework unpon receiving an action response from an action
172
- * handler.
136
+ * Response for actions run from lists.
173
137
  */
174
138
  export interface ListActionResponse extends BaseActionResponse {
175
139
  responseType: "listAction";
@@ -177,9 +141,7 @@ export interface ListActionResponse extends BaseActionResponse {
177
141
  successMessage: string;
178
142
  }
179
143
  /**
180
- * FormTemplateActionResponse is an interface defining the properties of a form template action
181
- * response. These properties are expected by the form framework unpon receiving an action response
182
- * from an action handler.
144
+ * Response for actions run from forms.
183
145
  */
184
146
  export interface FormTemplateActionResponse extends BaseActionResponse {
185
147
  responseType: "formTemplateAction";
@@ -187,9 +149,7 @@ export interface FormTemplateActionResponse extends BaseActionResponse {
187
149
  successMessage: string;
188
150
  }
189
151
  /**
190
- * PageTemplateActionResponse is an interface defining the properties of a page template action
191
- * response. These properties are expected by the page framework unpon receiving an action response
192
- * from an action handler.
152
+ * Response for actions run from pages.
193
153
  */
194
154
  export interface PageTemplateActionResponse extends BaseActionResponse {
195
155
  responseType: "pageTemplateAction";
@@ -198,9 +158,7 @@ export interface PageTemplateActionResponse extends BaseActionResponse {
198
158
  refreshPage?: boolean;
199
159
  }
200
160
  /**
201
- * ObjectSaveActionResponse is an interface defining the properties of an object save action
202
- * response. These properties are expected by the object save framework unpon receiving an action
203
- * response from an action handler.
161
+ * Response for actions triggered on object save events.
204
162
  */
205
163
  export interface ObjectSaveActionResponse extends BaseActionResponse {
206
164
  responseType: "objectSaveAction";
@@ -208,17 +166,14 @@ export interface ObjectSaveActionResponse extends BaseActionResponse {
208
166
  successMessage: string;
209
167
  }
210
168
  /**
211
- * CalculatedFieldActionResponse is an interface defining the properties of a calculated field
212
- * action response. These properties are expected by the calculated field framework unpon receiving
213
- * an action response from an action handler.
169
+ * Response for actions computing calculated field values.
214
170
  */
215
171
  export interface CalculatedFieldActionResponse extends BaseActionResponse {
216
172
  responseType: "calculatedFieldAction";
217
173
  calculatedValue: any;
218
174
  }
219
175
  /**
220
- * SingleValueActionResponse is an interface defining the properties of a single value action
221
- * response. These properties are expected by the caller of the action.
176
+ * Response for actions returning a single value.
222
177
  */
223
178
  export interface SingleValueActionResponse extends BaseActionResponse {
224
179
  responseType: "singleValueAction";
@@ -233,28 +188,18 @@ export interface ErrorResponse {
233
188
  errorMessage: string;
234
189
  }
235
190
  /**
236
- * prepareSuccessResponse prepares a success response in the appropriate format. The action handler
237
- * should return an ActionResponse response when the action is successful. If useBody is true, the
238
- * response will be returned as an object with the HTTP response code and the ActionResponse in the
239
- * body field. If useBody is false, the ActionResponse will be returned directly.
191
+ * Formats a success response. Returns ActionResponse directly, or wrapped with statusCode if useBody is true.
240
192
  *
241
- * @param successResponse - The value to return
242
- *
243
- * @returns Formatted success response; an ActionResponse unless useBody is true
193
+ * @returns ActionResponse or {statusCode: 200, body: string}
244
194
  */
245
195
  export declare function prepareSuccessResponse(successResponse: ActionResponse): {
246
196
  statusCode: number;
247
197
  body: string;
248
198
  } | ActionResponse;
249
199
  /**
250
- * prepareErrorResponse prepares an error response in the appropriate format. The action handler
251
- * should return an ErrorResponse response when the action is not successful. If useBody is true,
252
- * the response will be returned as an object with the HTTP response code and the ErrorResponse in
253
- * the body field. If useBody is false, the ErrorResponse will be returned directly.
254
- *
255
- * @param errorMessage - The error message
200
+ * Formats an error response. Returns ErrorResponse directly, or wrapped with statusCode if useBody is true.
256
201
  *
257
- * @returns Formatted error response; an ErrorResponse unless useBody is true
202
+ * @returns ErrorResponse or {statusCode: 400, body: string}
258
203
  */
259
204
  export declare function prepareErrorResponse(errorMessage: string): {
260
205
  statusCode: number;
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-general.d.ts","sourceRoot":"","sources":["../../../src/sdk-general.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAC;AAMtC;;;;GAIG;AACH,eAAO,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC,MAAM,CAAC,CAAC;AAElD;;;;GAIG;AACH,eAAO,IAAI,UAAU,EAAE,MAAM,CAAC;AAE9B;;;GAGG;AACH,eAAO,IAAI,cAAc,EAAE,MAAM,CAAC;AAElC;;;;;;;;;;;GAWG;AACH,eAAO,IAAI,aAAa,EAAE,GAAG,CAAC;AAE9B;;;GAGG;AACH,eAAO,IAAI,WAAW,EAAE,WAAW,CAAC;AAEpC;;;;GAIG;AACH,eAAO,IAAI,MAAM,EAAE,MAAM,CAAC;AAE1B;;;;;GAKG;AACH,eAAO,IAAI,OAAO,EAAE,OAAO,CAAC;AAE5B;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EA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AAC,YAAY,EAAE,MAAM,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CAS/G"}
@@ -24,50 +24,30 @@ export interface SortField {
24
24
  autoSequence?: boolean;
25
25
  }
26
26
  /**
27
- * sortObjectArray is a helper function that sorts the passed array in place by the given
28
- * attributes. Sorting by nested attributes in the form of a delimited attribute string are
29
- * supported (e.g., "attribute.nestedAttribute").
27
+ * Sorts an array in-place by specified attributes. Supports nested attributes via dot notation (e.g., "user.name").
30
28
  *
31
- * @param array - The array to sort
32
- * @param sort - Array of sort field specifications
29
+ * @param sort - Array of SortField with attributeId, descending?, caseInsensitive?
33
30
  * @returns The sorted array
34
31
  */
35
32
  export declare function sortObjectArray<T>(array: Array<T>, sort: SortField[]): Array<T>;
36
33
  /**
37
- * compareValues is a helper function that compares two values for sorting purposes. If the values
38
- * are strings, the comparison is case-insensitive. If the values are numbers, the comparison is
39
- * performed numerically.
34
+ * Compares two values for sorting. Handles strings (with optional case-insensitivity) and numbers.
40
35
  *
41
- * @param valueA - First value to compare
42
- * @param valueB - Second value to compare
43
- * @param descending - Whether to sort in descending order
44
- * @param caseInsensitive - Whether to perform case-insensitive comparison for strings
45
- *
46
- * @returns Comparison result (-1, 0, or 1)
36
+ * @returns number - comparison result (-1, 0, or 1)
47
37
  */
48
38
  export declare function compareValues(valueA: any, valueB: any, descending: boolean, caseInsensitive: boolean): number;
49
39
  /**
50
- * getValueFromObject is a helper function that extracts a value from an object using a dot-notation
51
- * path. The path can include relationships. Relationship IDs may include a colon delimiter (e.g.,
52
- * "accountMember:ownerAccountMemberKey") to specify the key of the related object. This is useful
53
- * when an element has more than one relationship to the same object type. Otherwise, if only one
54
- * relationship to the same object type exists, the key may be specified without the relationship ID
55
- * (e.g., simply, "accountMember").
56
- *
57
- * @param object - The object to extract value from
58
- * @param attribute - The attribute path (e.g., "user.address.city")
40
+ * Extracts a value from an object using dot-notation path. Supports relationships with colon delimiter (e.g., "accountMember:ownerAccountMemberKey").
59
41
  *
42
+ * @param attribute - Dot-notation path (e.g., "user.address.city")
60
43
  * @returns The extracted value
61
44
  */
62
45
  export declare function getValueFromObject(object: any, attribute: string): any;
63
46
  /**
64
- * debounceFn is a utility function that debounces a function call. It is used to prevent multiple
65
- * calls to the same function within a short period of time.
66
- *
67
- * @param fn - The function to debounce
68
- * @param wait - The number of milliseconds to wait before calling the function
47
+ * Debounces a function call to prevent excessive execution within a short period.
69
48
  *
70
- * @returns The debounced function
49
+ * @param wait - Milliseconds to wait (default: 200)
50
+ * @returns Debounced function
71
51
  */
72
52
  export declare function debounceFn<T extends (...args: any[]) => void>(fn: T, wait?: number): (...args: Parameters<T>) => void;
73
53
  //# sourceMappingURL=utilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../src/utilities.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;GAWG;AAMH;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qCAAqC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAMD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAiB/E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,GAAG,MAAM,CA2B7G;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,EAAE,SA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ILITY FUNCTIONS
17
17
  // ================================================================================
18
18
  /**
19
- * sortObjectArray is a helper function that sorts the passed array in place by the given
20
- * attributes. Sorting by nested attributes in the form of a delimited attribute string are
21
- * supported (e.g., "attribute.nestedAttribute").
19
+ * Sorts an array in-place by specified attributes. Supports nested attributes via dot notation (e.g., "user.name").
22
20
  *
23
- * @param array - The array to sort
24
- * @param sort - Array of sort field specifications
21
+ * @param sort - Array of SortField with attributeId, descending?, caseInsensitive?
25
22
  * @returns The sorted array
26
23
  */
27
24
  function sortObjectArray(array, sort) {
@@ -39,16 +36,9 @@ function sortObjectArray(array, sort) {
39
36
  });
40
37
  }
41
38
  /**
42
- * compareValues is a helper function that compares two values for sorting purposes. If the values
43
- * are strings, the comparison is case-insensitive. If the values are numbers, the comparison is
44
- * performed numerically.
39
+ * Compares two values for sorting. Handles strings (with optional case-insensitivity) and numbers.
45
40
  *
46
- * @param valueA - First value to compare
47
- * @param valueB - Second value to compare
48
- * @param descending - Whether to sort in descending order
49
- * @param caseInsensitive - Whether to perform case-insensitive comparison for strings
50
- *
51
- * @returns Comparison result (-1, 0, or 1)
41
+ * @returns number - comparison result (-1, 0, or 1)
52
42
  */
53
43
  function compareValues(valueA, valueB, descending, caseInsensitive) {
54
44
  if (caseInsensitive && (typeof valueA === 'string' || valueA instanceof String)) {
@@ -80,16 +70,9 @@ function compareValues(valueA, valueB, descending, caseInsensitive) {
80
70
  return 0;
81
71
  }
82
72
  /**
83
- * getValueFromObject is a helper function that extracts a value from an object using a dot-notation
84
- * path. The path can include relationships. Relationship IDs may include a colon delimiter (e.g.,
85
- * "accountMember:ownerAccountMemberKey") to specify the key of the related object. This is useful
86
- * when an element has more than one relationship to the same object type. Otherwise, if only one
87
- * relationship to the same object type exists, the key may be specified without the relationship ID
88
- * (e.g., simply, "accountMember").
89
- *
90
- * @param object - The object to extract value from
91
- * @param attribute - The attribute path (e.g., "user.address.city")
73
+ * Extracts a value from an object using dot-notation path. Supports relationships with colon delimiter (e.g., "accountMember:ownerAccountMemberKey").
92
74
  *
75
+ * @param attribute - Dot-notation path (e.g., "user.address.city")
93
76
  * @returns The extracted value
94
77
  */
95
78
  function getValueFromObject(object, attribute) {
@@ -114,13 +97,10 @@ function getValueFromObject(object, attribute) {
114
97
  return value;
115
98
  }
116
99
  /**
117
- * debounceFn is a utility function that debounces a function call. It is used to prevent multiple
118
- * calls to the same function within a short period of time.
119
- *
120
- * @param fn - The function to debounce
121
- * @param wait - The number of milliseconds to wait before calling the function
100
+ * Debounces a function call to prevent excessive execution within a short period.
122
101
  *
123
- * @returns The debounced function
102
+ * @param wait - Milliseconds to wait (default: 200)
103
+ * @returns Debounced function
124
104
  */
125
105
  function debounceFn(fn, wait = 200) {
126
106
  let timeout;
@@ -22,18 +22,9 @@ import { sandboxKey, serviceAddress, getAuthToken, userContext } from './sdk-gen
22
22
  // CONTENT RESOURCE FUNCTIONS
23
23
  // ================================================================================
24
24
  /**
25
- * getOrCreateResource retrieves an existing content resource by its key, or creates a new one
26
- * if the key is not provided. If a resource key is provided, it attempts to fetch the existing
27
- * resource from the server. If no key is provided, it creates a new resource with the specified
28
- * properties.
25
+ * Retrieves an existing content resource by key, or creates a new one if key is null.
29
26
  *
30
- * @param resourceKey - Optional key of the existing resource to retrieve
31
- * @param fileToUpload - Optional file or blob to upload
32
- * @param publicFlag - Whether the resource should be public
33
- * @param resourceType - The type of resource
34
- * @param tags - Array of tags for the resource
35
- *
36
- * @returns Promise resolving to a ContentResource
27
+ * @returns Promise<ContentResource>
37
28
  */
38
29
  export async function getOrCreateResource(resourceKey, fileToUpload, publicFlag, resourceType, tags) {
39
30
  if (!userContext) {
@@ -72,29 +63,15 @@ export async function getOrCreateResource(resourceKey, fileToUpload, publicFlag,
72
63
  return newResource;
73
64
  }
74
65
  /**
75
- * getOrCreateResourceAsObservable retrieves an existing content resource by its key, or creates a new one
76
- * if the key is not provided. If a resource key is provided, it attempts to fetch the existing
77
- * resource from the server. If no key is provided, it creates a new resource with the specified
78
- * properties.
79
- *
80
- * @param resourceKey - Optional key of the existing resource to retrieve
81
- * @param fileToUpload - Optional file or blob to upload
82
- * @param publicFlag - Whether the resource should be public
83
- * @param resourceType - The type of resource
84
- * @param tags - Array of tags for the resource
85
- *
86
- * @returns Observable resolving to a ContentResource
66
+ * Observable version of getOrCreateResource. See getOrCreateResource for details.
87
67
  */
88
68
  export function getOrCreateResourceAsObservable(resourceKey, fileToUpload, publicFlag, resourceType, tags) {
89
69
  return from(getOrCreateResource(resourceKey, fileToUpload, publicFlag, resourceType, tags));
90
70
  }
91
71
  /**
92
- * saveResource saves a content resource to the server. The resource is saved with appropriate
93
- * ownership parameters based on the current context (solution builder vs regular organization view).
72
+ * Saves a content resource with appropriate ownership based on context (solution builder vs org view).
94
73
  *
95
- * @param resource - The ContentResource to save
96
- *
97
- * @returns Promise resolving to the saved ContentResource
74
+ * @returns Promise<ContentResource>
98
75
  */
99
76
  export async function saveResource(resource) {
100
77
  if (!userContext) {
@@ -120,25 +97,15 @@ export async function saveResource(resource) {
120
97
  return response.data;
121
98
  }
122
99
  /**
123
- * saveResourceAsObservable saves a content resource to the server. The resource is saved with appropriate
124
- * ownership parameters based on the current context (solution builder vs regular organization view).
125
- *
126
- * @param resource - The ContentResource to save
127
- *
128
- * @returns Observable resolving to the saved ContentResource
100
+ * Observable version of saveResource. See saveResource for details.
129
101
  */
130
102
  export function saveResourceAsObservable(resource) {
131
103
  return from(saveResource(resource));
132
104
  }
133
105
  /**
134
- * sendFileContents uploads file contents to the server for a specific resource. The file is uploaded
135
- * via FormData with the appropriate scope and public flag settings.
106
+ * Uploads file contents to a resource via FormData.
136
107
  *
137
- * @param resourceKey - The key of the resource to upload file contents for
138
- * @param fileToUpload - The file or blob to upload
139
- * @param publicFlag - Whether the file should be public
140
- *
141
- * @returns Promise resolving to true if upload was successful
108
+ * @returns Promise<boolean> - true if successful
142
109
  */
143
110
  export async function sendFileContents(resourceKey, fileToUpload, publicFlag) {
144
111
  if (!userContext) {
@@ -160,30 +127,15 @@ export async function sendFileContents(resourceKey, fileToUpload, publicFlag) {
160
127
  return response.status === 204;
161
128
  }
162
129
  /**
163
- * sendFileContentsAsObservable uploads file contents to the server for a specific resource. The file is uploaded
164
- * via FormData with the appropriate scope and public flag settings.
165
- *
166
- * @param resourceKey - The key of the resource to upload file contents for
167
- * @param fileToUpload - The file or blob to upload
168
- * @param publicFlag - Whether the file should be public
169
- *
170
- * @returns Observable resolving to true if upload was successful
130
+ * Observable version of sendFileContents. See sendFileContents for details.
171
131
  */
172
132
  export function sendFileContentsAsObservable(resourceKey, fileToUpload, publicFlag) {
173
133
  return from(sendFileContents(resourceKey, fileToUpload, publicFlag));
174
134
  }
175
135
  /**
176
- * createOrUpdateResource creates a new content resource or updates an existing one, then uploads
177
- * the file contents to that resource. If a resourceKey is provided, it updates the existing resource;
178
- * otherwise, it creates a new resource and uploads the file to the newly created resource.
136
+ * Creates or updates a content resource and uploads file contents. If resourceKey is provided, updates existing; otherwise creates new.
179
137
  *
180
- * @param resourceKey - Optional key of the existing resource to update; if not provided, a new resource is created
181
- * @param fileToUpload - The file or blob to upload
182
- * @param publicFlag - Whether the resource should be public
183
- * @param resourceType - The type of resource
184
- * @param tags - Array of tags for the resource
185
- *
186
- * @returns Promise resolving to the ContentResource with uploaded file
138
+ * @returns Promise<ContentResource> with uploaded file metadata
187
139
  */
188
140
  export async function createOrUpdateResource(resourceKey, fileToUpload, publicFlag, resourceType, tags) {
189
141
  if (!userContext) {
@@ -210,17 +162,7 @@ export async function createOrUpdateResource(resourceKey, fileToUpload, publicFl
210
162
  return updatedResource;
211
163
  }
212
164
  /**
213
- * createOrUpdateResourceAsObservable creates a new content resource or updates an existing one, then uploads
214
- * the file contents to that resource. If a resourceKey is provided, it updates the existing resource;
215
- * otherwise, it creates a new resource and uploads the file to the newly created resource.
216
- *
217
- * @param resourceKey - Optional key of the existing resource to update; if not provided, a new resource is created
218
- * @param fileToUpload - The file or blob to upload
219
- * @param publicFlag - Whether the resource should be public
220
- * @param resourceType - The type of resource
221
- * @param tags - Array of tags for the resource
222
- *
223
- * @returns Observable resolving to the ContentResource with uploaded file
165
+ * Observable version of createOrUpdateResource. See createOrUpdateResource for details.
224
166
  */
225
167
  export function createOrUpdateResourceAsObservable(resourceKey, fileToUpload, publicFlag, resourceType, tags) {
226
168
  return from(createOrUpdateResource(resourceKey, fileToUpload, publicFlag, resourceType, tags));
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/content.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,mCAAmC;AACnC,EAAE;AACF,oEAAoE;AACpE,0EAA0E;AAC1E,EAAE;AACF,6DAA6D;AAC7D,oDAAoD;AAEpD;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAc,aAAa,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA0BtF,mFAAmF;AACnF,6BAA6B;AAC7B,mFAAmF;AAEnF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,WAA0B,EAAE,YAAgC,EAAE,UAAmB,EAAE,YAAoB,EAAE,IAAc;IAE7J,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,+FAA+F,CAAC,CAAC;IACrH,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QACd,IAAI,GAAG,GAAG,GAAG,cAAc,cAAc,UAAU,oBAAoB,WAAW,EAAE,CAAC;QACrF,IAAI,SAAS,GAAG,MAAM,aAAa,CAAC,YAAY,EAAE,CAAC,CAAC;QAEpD,OAAO,CAAC,GAAG,CAAC,yBAAyB,GAAG,GAAG,GAAG,cAAc,GAAG,SAAS,CAAC,CAAC;QAE1E,IAAI,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE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