@rippling/rippling-sdk 0.2.0-alpha.69 → 0.2.0-alpha.71
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/examples/manifest/dental-practice-management/dental-practice-management.ts +12 -0
- package/examples/manifest/dental-practice-management/functions/chair-schedule.ts +4 -4
- package/examples/manifest/dental-practice-management/functions/complete-visit.ts +121 -0
- package/examples/manifest/dental-practice-management/functions/operatory-list.ts +4 -4
- package/examples/manifest/dental-practice-management/functions/patient-list.ts +4 -4
- package/examples/manifest/dental-practice-management/functions/treatment-plan-list.ts +4 -4
- package/examples/manifest/gym-membership-management/functions/check-in-desk.ts +4 -4
- package/examples/manifest/gym-membership-management/functions/member-list.ts +4 -4
- package/examples/manifest/gym-membership-management/functions/today-schedule.ts +4 -4
- package/examples/manifest/gym-membership-management/functions/trainer-list.ts +4 -4
- package/examples/manifest/simple-todo-app/functions/todo-list.ts +4 -4
- package/examples/manifest/todo-app-without-object-list-view/functions/todo-page.ts +17 -7
- package/functions.d.mts +44 -1
- package/functions.d.mts.map +1 -1
- package/functions.d.ts +44 -1
- package/functions.d.ts.map +1 -1
- package/functions.js.map +1 -1
- package/functions.mjs.map +1 -1
- package/lib/manifest/custom-object-page-layout.d.mts +3 -3
- package/lib/manifest/custom-object-page-layout.d.mts.map +1 -1
- package/lib/manifest/custom-object-page-layout.d.ts +3 -3
- package/lib/manifest/custom-object-page-layout.d.ts.map +1 -1
- package/lib/manifest/custom-object-page-layout.js +7 -3
- package/lib/manifest/custom-object-page-layout.js.map +1 -1
- package/lib/manifest/custom-object-page-layout.mjs +7 -3
- package/lib/manifest/custom-object-page-layout.mjs.map +1 -1
- package/lib/manifest/index.d.mts +1 -1
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +1 -1
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/manifest-function.d.mts +5 -1
- package/lib/manifest/manifest-function.d.mts.map +1 -1
- package/lib/manifest/manifest-function.d.ts +5 -1
- package/lib/manifest/manifest-function.d.ts.map +1 -1
- package/lib/manifest/manifest-function.js +7 -0
- package/lib/manifest/manifest-function.js.map +1 -1
- package/lib/manifest/manifest-function.mjs +7 -0
- package/lib/manifest/manifest-function.mjs.map +1 -1
- package/package.json +1 -1
- package/src/functions.md +26 -0
- package/src/functions.ts +66 -1
- package/src/lib/manifest/custom-object-page-layout.ts +13 -7
- package/src/lib/manifest/index.ts +0 -1
- package/src/lib/manifest/manifest-function.ts +9 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
import { getExistingManifestContext, type ExistingManifestContextOptions } from './existing-manifest-context';
|
|
9
9
|
import type { Field } from './field';
|
|
10
10
|
import type { ManifestComponentDeletion } from './manifest-builder';
|
|
11
|
+
import type { ManifestFunction } from './manifest-function';
|
|
11
12
|
import { requireStringComponentField } from './_existing-component-fields';
|
|
12
13
|
|
|
13
14
|
export interface PageLayoutDeletionIdentifier {
|
|
@@ -24,7 +25,7 @@ export type HeaderFieldKey = string;
|
|
|
24
25
|
export type FieldRqlName = string;
|
|
25
26
|
export type RelatedObjectRqlName = string;
|
|
26
27
|
export type CanvasCompositionId = string;
|
|
27
|
-
|
|
28
|
+
type HeaderButtonKey = string;
|
|
28
29
|
|
|
29
30
|
export type JsonPrimitive = string | number | boolean | null;
|
|
30
31
|
export type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
|
|
@@ -87,8 +88,8 @@ export interface HeaderEdits {
|
|
|
87
88
|
newFields?: NewHeaderField[];
|
|
88
89
|
/** Ordered list of header field RQL names. Custom header keys are accepted and converted. Optional. */
|
|
89
90
|
headerFieldsOrder?: FieldRqlName[];
|
|
90
|
-
/** Action
|
|
91
|
-
buttons?:
|
|
91
|
+
/** Action functions to show in the header. Optional. */
|
|
92
|
+
buttons?: ManifestFunction[];
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
interface SerializedSystemHeaderFieldEdit extends Omit<SystemHeaderFieldEdit, 'newRqlField'> {
|
|
@@ -96,10 +97,11 @@ interface SerializedSystemHeaderFieldEdit extends Omit<SystemHeaderFieldEdit, 'n
|
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
interface SerializedHeaderEdits
|
|
99
|
-
extends Omit<HeaderEdits, 'newTitleField' | 'newDescriptionField' | 'systemFieldEdits'> {
|
|
100
|
+
extends Omit<HeaderEdits, 'newTitleField' | 'newDescriptionField' | 'systemFieldEdits' | 'buttons'> {
|
|
100
101
|
newTitleField?: FieldRqlName | null;
|
|
101
102
|
newDescriptionField?: FieldRqlName | null;
|
|
102
103
|
systemFieldEdits?: Record<HeaderFieldKey, SerializedSystemHeaderFieldEdit>;
|
|
104
|
+
buttons?: HeaderButtonKey[];
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
// ---------------------------------------------------------------------------
|
|
@@ -970,10 +972,14 @@ function normalizeHeaderEdits(headerEdits: HeaderEdits): SerializedHeaderEdits {
|
|
|
970
972
|
);
|
|
971
973
|
}
|
|
972
974
|
|
|
973
|
-
|
|
975
|
+
const { buttons, ...rest } = headerEdits;
|
|
976
|
+
const normalized: SerializedHeaderEdits = { ...rest };
|
|
977
|
+
if (buttons != null) normalized.buttons = buttons.map((button) => button.getApiName());
|
|
978
|
+
|
|
979
|
+
if (headerEdits.headerFieldsOrder == null) return normalized;
|
|
974
980
|
return {
|
|
975
|
-
...
|
|
976
|
-
headerFieldsOrder: normalizeHeaderFieldsOrder(
|
|
981
|
+
...normalized,
|
|
982
|
+
headerFieldsOrder: normalizeHeaderFieldsOrder(normalized),
|
|
977
983
|
};
|
|
978
984
|
}
|
|
979
985
|
|
|
@@ -102,7 +102,7 @@ export class ManifestFunction {
|
|
|
102
102
|
|
|
103
103
|
private readonly _apiName: string;
|
|
104
104
|
private readonly _name: string;
|
|
105
|
-
private
|
|
105
|
+
private _code: string;
|
|
106
106
|
private readonly _description: string;
|
|
107
107
|
private readonly _dependencies: Record<string, string> | undefined;
|
|
108
108
|
private readonly _deploymentOptions: Record<string, any> | undefined;
|
|
@@ -156,6 +156,14 @@ export class ManifestFunction {
|
|
|
156
156
|
return this._apiName;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Replaces the TypeScript handler source code for this function.
|
|
161
|
+
*/
|
|
162
|
+
setCode(code: string): this {
|
|
163
|
+
this._code = code;
|
|
164
|
+
return this;
|
|
165
|
+
}
|
|
166
|
+
|
|
159
167
|
/**
|
|
160
168
|
* Serializes this function to the wire format consumed by the manifest install endpoint.
|
|
161
169
|
*
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.71'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.71";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.71";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.2.0-alpha.
|
|
4
|
+
exports.VERSION = '0.2.0-alpha.71'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.71'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|