@nuwah/vertical-sdk 0.0.0-stage → 0.2.0-rc.1
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/LICENSE +17 -0
- package/README.md +229 -2
- package/bin/nuwah-contract-check-rules.d.mts +41 -0
- package/bin/nuwah-contract-check-rules.mjs +333 -0
- package/bin/nuwah-contract-check.mjs +64 -0
- package/dist/accounting.d.ts +1417 -0
- package/dist/accounting.js +274 -0
- package/dist/active-org.d.ts +13 -0
- package/dist/active-org.js +59 -0
- package/dist/actors.d.ts +448 -0
- package/dist/actors.js +143 -0
- package/dist/ai.d.ts +359 -0
- package/dist/ai.js +229 -0
- package/dist/analytics.d.ts +37 -0
- package/dist/analytics.js +8 -0
- package/dist/atlas.d.ts +291 -0
- package/dist/atlas.js +78 -0
- package/dist/audit.d.ts +193 -0
- package/dist/audit.js +26 -0
- package/dist/authentication.d.ts +119 -0
- package/dist/authentication.js +83 -0
- package/dist/awards.d.ts +38 -0
- package/dist/awards.js +10 -0
- package/dist/blueprint/document.d.ts +178 -0
- package/dist/blueprint/document.js +17 -0
- package/dist/blueprint/index.d.ts +3 -0
- package/dist/blueprint/index.js +5 -0
- package/dist/blueprint/manifest.d.ts +105 -0
- package/dist/blueprint/manifest.js +11 -0
- package/dist/blueprint/validate.d.ts +14 -0
- package/dist/blueprint/validate.js +416 -0
- package/dist/bookings-directory.d.ts +118 -0
- package/dist/bookings-directory.js +289 -0
- package/dist/bookings-extra.d.ts +1448 -0
- package/dist/bookings-extra.js +582 -0
- package/dist/bookings.d.ts +1365 -0
- package/dist/bookings.js +305 -0
- package/dist/builder-code.d.ts +164 -0
- package/dist/builder-code.js +12 -0
- package/dist/builder-core-gaps.d.ts +83 -0
- package/dist/builder-core-gaps.js +8 -0
- package/dist/builder-repos.d.ts +73 -0
- package/dist/builder-repos.js +37 -0
- package/dist/builder.d.ts +730 -0
- package/dist/builder.js +105 -0
- package/dist/campaigns.d.ts +105 -0
- package/dist/campaigns.js +25 -0
- package/dist/catalogs.d.ts +188 -0
- package/dist/catalogs.js +36 -0
- package/dist/commerce-ai.d.ts +182 -0
- package/dist/commerce-ai.js +27 -0
- package/dist/connections.d.ts +278 -0
- package/dist/connections.js +96 -0
- package/dist/content-control.d.ts +121 -0
- package/dist/content-control.js +23 -0
- package/dist/contributions.d.ts +560 -0
- package/dist/contributions.js +140 -0
- package/dist/conversation-assist.d.ts +154 -0
- package/dist/conversation-assist.js +51 -0
- package/dist/conversation-info.d.ts +219 -0
- package/dist/conversation-info.js +43 -0
- package/dist/crm.d.ts +533 -0
- package/dist/crm.js +142 -0
- package/dist/dashboards.d.ts +119 -0
- package/dist/dashboards.js +22 -0
- package/dist/delegations.d.ts +161 -0
- package/dist/delegations.js +39 -0
- package/dist/docs.d.ts +289 -0
- package/dist/docs.js +49 -0
- package/dist/documents.d.ts +317 -0
- package/dist/documents.js +84 -0
- package/dist/drafts.d.ts +132 -0
- package/dist/drafts.js +56 -0
- package/dist/engagements.d.ts +133 -0
- package/dist/engagements.js +15 -0
- package/dist/event-stream.d.ts +54 -0
- package/dist/event-stream.js +228 -0
- package/dist/exchanges.d.ts +447 -0
- package/dist/exchanges.js +145 -0
- package/dist/exports.d.ts +113 -0
- package/dist/exports.js +81 -0
- package/dist/feeds.d.ts +228 -0
- package/dist/feeds.js +52 -0
- package/dist/files.d.ts +56 -0
- package/dist/files.js +55 -0
- package/dist/finance-insights.d.ts +41 -0
- package/dist/finance-insights.js +61 -0
- package/dist/fixed-assets.d.ts +155 -0
- package/dist/fixed-assets.js +28 -0
- package/dist/fulfilment-jobs.d.ts +405 -0
- package/dist/fulfilment-jobs.js +76 -0
- package/dist/fulfilment.d.ts +205 -0
- package/dist/fulfilment.js +39 -0
- package/dist/hr.d.ts +350 -0
- package/dist/hr.js +94 -0
- package/dist/http.d.ts +124 -0
- package/dist/http.js +392 -0
- package/dist/inbox.d.ts +206 -0
- package/dist/inbox.js +36 -0
- package/dist/index.d.ts +384 -0
- package/dist/index.js +294 -0
- package/dist/insights.d.ts +176 -0
- package/dist/insights.js +52 -0
- package/dist/inventory.d.ts +797 -0
- package/dist/inventory.js +120 -0
- package/dist/list-query.d.ts +211 -0
- package/dist/list-query.js +158 -0
- package/dist/listings.d.ts +381 -0
- package/dist/listings.js +173 -0
- package/dist/location-sharing.d.ts +83 -0
- package/dist/location-sharing.js +20 -0
- package/dist/marketplace.d.ts +268 -0
- package/dist/marketplace.js +59 -0
- package/dist/matching.d.ts +103 -0
- package/dist/matching.js +22 -0
- package/dist/media.d.ts +221 -0
- package/dist/media.js +239 -0
- package/dist/metrics.d.ts +125 -0
- package/dist/metrics.js +45 -0
- package/dist/moderation.d.ts +240 -0
- package/dist/moderation.js +40 -0
- package/dist/money.d.ts +41 -0
- package/dist/money.js +79 -0
- package/dist/my-data.d.ts +266 -0
- package/dist/my-data.js +32 -0
- package/dist/names.d.ts +14 -0
- package/dist/names.js +17 -0
- package/dist/occasions.d.ts +256 -0
- package/dist/occasions.js +40 -0
- package/dist/onboarding.d.ts +88 -0
- package/dist/onboarding.js +38 -0
- package/dist/pagination.d.ts +204 -0
- package/dist/pagination.js +141 -0
- package/dist/party-baseline-attributes.d.ts +245 -0
- package/dist/party-baseline-attributes.js +36 -0
- package/dist/party.d.ts +401 -0
- package/dist/party.js +56 -0
- package/dist/patient.d.ts +161 -0
- package/dist/patient.js +45 -0
- package/dist/payroll.d.ts +378 -0
- package/dist/payroll.js +60 -0
- package/dist/person-addresses.d.ts +88 -0
- package/dist/person-addresses.js +18 -0
- package/dist/person-cart.d.ts +250 -0
- package/dist/person-cart.js +63 -0
- package/dist/person-chat-assist.d.ts +47 -0
- package/dist/person-chat-assist.js +13 -0
- package/dist/person-data-webhooks.d.ts +72 -0
- package/dist/person-data-webhooks.js +86 -0
- package/dist/person-data.d.ts +212 -0
- package/dist/person-data.js +162 -0
- package/dist/person-locations.d.ts +54 -0
- package/dist/person-locations.js +6 -0
- package/dist/person-messaging.d.ts +405 -0
- package/dist/person-messaging.js +112 -0
- package/dist/person-notifications.d.ts +319 -0
- package/dist/person-notifications.js +164 -0
- package/dist/personalisation.d.ts +21 -0
- package/dist/personalisation.js +8 -0
- package/dist/platform.d.ts +63 -0
- package/dist/platform.js +45 -0
- package/dist/portfolio.d.ts +163 -0
- package/dist/portfolio.js +28 -0
- package/dist/pos.d.ts +743 -0
- package/dist/pos.js +129 -0
- package/dist/procurement.d.ts +664 -0
- package/dist/procurement.js +157 -0
- package/dist/promotions.d.ts +169 -0
- package/dist/promotions.js +39 -0
- package/dist/publications.d.ts +583 -0
- package/dist/publications.js +164 -0
- package/dist/ranking.d.ts +43 -0
- package/dist/ranking.js +34 -0
- package/dist/ratings.d.ts +293 -0
- package/dist/ratings.js +109 -0
- package/dist/reactions.d.ts +123 -0
- package/dist/reactions.js +41 -0
- package/dist/recipient-orders.d.ts +294 -0
- package/dist/recipient-orders.js +73 -0
- package/dist/relationships.d.ts +18 -0
- package/dist/relationships.js +8 -0
- package/dist/reporting.d.ts +107 -0
- package/dist/reporting.js +56 -0
- package/dist/sales.d.ts +270 -0
- package/dist/sales.js +66 -0
- package/dist/shares.d.ts +105 -0
- package/dist/shares.js +27 -0
- package/dist/shop.d.ts +993 -0
- package/dist/shop.js +215 -0
- package/dist/shopping-assistant.d.ts +65 -0
- package/dist/shopping-assistant.js +14 -0
- package/dist/spaces.d.ts +422 -0
- package/dist/spaces.js +118 -0
- package/dist/stored-value.d.ts +754 -0
- package/dist/stored-value.js +177 -0
- package/dist/types.d.ts +83 -0
- package/dist/types.js +2 -0
- package/dist/vault.d.ts +290 -0
- package/dist/vault.js +55 -0
- package/dist/vertical-runtime.d.ts +17 -0
- package/dist/vertical-runtime.js +8 -0
- package/dist/vite/build-manifest-plugin.d.ts +42 -0
- package/dist/vite/build-manifest-plugin.js +42 -0
- package/dist/vite/first-paint-plugin.d.ts +26 -0
- package/dist/vite/first-paint-plugin.js +57 -0
- package/dist/wishlists.d.ts +591 -0
- package/dist/wishlists.js +188 -0
- package/dist/workbench.d.ts +114 -0
- package/dist/workbench.js +22 -0
- package/dist/workspace.d.ts +190 -0
- package/dist/workspace.js +41 -0
- package/package.json +52 -4
- package/templates/extension-image.Dockerfile +38 -0
- package/templates/nuwah-vertical.yml +102 -0
- package/templates/vertical-app/.env.example +34 -0
- package/templates/vertical-app/README.md +108 -0
- package/templates/vertical-app/github/workflows/ci.yml +51 -0
- package/templates/vertical-app/gitignore +5 -0
- package/templates/vertical-app/index.html +12 -0
- package/templates/vertical-app/package.json +28 -0
- package/templates/vertical-app/src/App.tsx +64 -0
- package/templates/vertical-app/src/blueprint/blueprint.ts +45 -0
- package/templates/vertical-app/src/blueprint/screens.ts +15 -0
- package/templates/vertical-app/src/env.d.ts +18 -0
- package/templates/vertical-app/src/index.css +139 -0
- package/templates/vertical-app/src/lib/i18n.ts +5 -0
- package/templates/vertical-app/src/lib/iam.ts +19 -0
- package/templates/vertical-app/src/lib/operations.ts +93 -0
- package/templates/vertical-app/src/lib/router.ts +24 -0
- package/templates/vertical-app/src/lib/sdk.ts +21 -0
- package/templates/vertical-app/src/lib/theme.ts +18 -0
- package/templates/vertical-app/src/lib/words.ts +39 -0
- package/templates/vertical-app/src/main.tsx +25 -0
- package/templates/vertical-app/src/pages/AppScreens.tsx +71 -0
- package/templates/vertical-app/src/pages/AuthCallback.tsx +44 -0
- package/templates/vertical-app/src/pages/Home.tsx +36 -0
- package/templates/vertical-app/tsconfig.json +24 -0
- package/templates/vertical-app/vite.config.ts +23 -0
- package/templates/vertical-ci.yml +192 -0
package/dist/inbox.d.ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import type { Http } from './http.js';
|
|
2
|
+
import type { Paginated } from './types.js';
|
|
3
|
+
/** A normalised call-to-action lifted onto a feed item ({label, path}). */
|
|
4
|
+
export interface AttentionFeedCta {
|
|
5
|
+
label: string;
|
|
6
|
+
path: string | null;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* One merged AttentionFeed entry (a `FeedItem` value object — not an Eloquent row).
|
|
10
|
+
* `kind` is the source DISCRIMINATOR ('notification' | 'action'); the per-source
|
|
11
|
+
* type string stays under `source_kind`. `tone` + `priority` drive the interleaved
|
|
12
|
+
* urgency ordering.
|
|
13
|
+
*/
|
|
14
|
+
export interface AttentionFeedItem {
|
|
15
|
+
kind: 'notification' | 'action';
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
body: string | null;
|
|
19
|
+
tone: string;
|
|
20
|
+
priority: number;
|
|
21
|
+
cta: AttentionFeedCta | null;
|
|
22
|
+
source_module: string | null;
|
|
23
|
+
/** `tone` in the reader's language ("حرج"). Older servers omit it — fall back to `tone`. */
|
|
24
|
+
tone_label?: string | null;
|
|
25
|
+
/** `source_module` in the reader's language ("الحجوزات"). Older servers omit it. */
|
|
26
|
+
source_module_label?: string | null;
|
|
27
|
+
source_kind: string | null;
|
|
28
|
+
created_at: string | null;
|
|
29
|
+
}
|
|
30
|
+
/** The `meta.summary` block — `total` is the base for any fraction the client derives. */
|
|
31
|
+
export interface AttentionFeedSummary {
|
|
32
|
+
total: number;
|
|
33
|
+
notifications: number;
|
|
34
|
+
actions: number;
|
|
35
|
+
/** Per-tone counts, keyed by tone. */
|
|
36
|
+
by_tone: Record<string, number>;
|
|
37
|
+
}
|
|
38
|
+
/** `GET /feed` — a Laravel resource collection with a custom `meta` (NOT the paginator `meta`). */
|
|
39
|
+
export interface AttentionFeedResponse {
|
|
40
|
+
data: AttentionFeedItem[];
|
|
41
|
+
meta: {
|
|
42
|
+
summary: AttentionFeedSummary;
|
|
43
|
+
limit: number;
|
|
44
|
+
count: number;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface AttentionFeedQuery {
|
|
48
|
+
/** Cap on the merged list; default 50, hard ceiling 100. */
|
|
49
|
+
limit?: number;
|
|
50
|
+
[param: string]: string | number | boolean | null | undefined | Array<string | number>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* An action item's urgency.
|
|
54
|
+
*
|
|
55
|
+
* The trailing `string & {}` rather than a bare `string` is deliberate and not cosmetic:
|
|
56
|
+
* `'critical' | ... | string` WIDENS to plain `string`, so the union provides no narrowing
|
|
57
|
+
* and no completion at all — it reads as a documented set and behaves as an undocumented
|
|
58
|
+
* one. `string & {}` keeps the four known values suggestible while still accepting a value
|
|
59
|
+
* this list has not caught up with, which matters because severity is a plain column a
|
|
60
|
+
* producer can write anything into.
|
|
61
|
+
*/
|
|
62
|
+
export type InboxActionSeverity = 'critical' | 'warning' | 'info' | 'success' | (string & {});
|
|
63
|
+
export interface InboxCallToAction {
|
|
64
|
+
label: string;
|
|
65
|
+
/** A stable action key, mapped to a route by the client. Always present. */
|
|
66
|
+
action: string;
|
|
67
|
+
/** For a navigating action, the route to open. */
|
|
68
|
+
href: string | null;
|
|
69
|
+
/** Arbitrary producer-supplied parameters. Defaults to an empty object, never absent. */
|
|
70
|
+
params: Record<string, unknown>;
|
|
71
|
+
}
|
|
72
|
+
/** One open action-required item (full lifecycle + audit surface). */
|
|
73
|
+
export interface InboxActionItem {
|
|
74
|
+
id: string;
|
|
75
|
+
kind: string;
|
|
76
|
+
kind_label?: string;
|
|
77
|
+
source: string;
|
|
78
|
+
subject_type: string | null;
|
|
79
|
+
subject_id: string | null;
|
|
80
|
+
dedupe_key: string | null;
|
|
81
|
+
title: string;
|
|
82
|
+
body: string | null;
|
|
83
|
+
/** Free-form payload bag. */
|
|
84
|
+
data: Record<string, unknown> | null;
|
|
85
|
+
severity: InboxActionSeverity;
|
|
86
|
+
/** The primary control for resolving this item. Null when the producer offered none. */
|
|
87
|
+
call_to_action: InboxCallToAction | null;
|
|
88
|
+
assignee_person_id: string | null;
|
|
89
|
+
assignee_role: string | null;
|
|
90
|
+
source_event_id: string | null;
|
|
91
|
+
status: string;
|
|
92
|
+
raised_at: string | null;
|
|
93
|
+
first_seen_at: string | null;
|
|
94
|
+
acknowledged_by: string | null;
|
|
95
|
+
acknowledged_at: string | null;
|
|
96
|
+
resolved_by: string | null;
|
|
97
|
+
resolved_at: string | null;
|
|
98
|
+
resolved_reason: string | null;
|
|
99
|
+
snoozed_until: string | null;
|
|
100
|
+
created_at: string | null;
|
|
101
|
+
updated_at: string | null;
|
|
102
|
+
}
|
|
103
|
+
/** `GET /actions` — a bare Laravel resource collection (`{data}`, NO pagination meta). */
|
|
104
|
+
export interface InboxActionItemsResponse {
|
|
105
|
+
data: InboxActionItem[];
|
|
106
|
+
}
|
|
107
|
+
export interface InboxActionsQuery {
|
|
108
|
+
/** Case-insensitive match on title OR body. */
|
|
109
|
+
search?: string;
|
|
110
|
+
severity?: InboxActionSeverity;
|
|
111
|
+
kind?: string;
|
|
112
|
+
[param: string]: string | number | boolean | null | undefined | Array<string | number>;
|
|
113
|
+
}
|
|
114
|
+
/** One notification row (rendered in the viewer's locale; per-viewer read state). */
|
|
115
|
+
export interface InboxNotification {
|
|
116
|
+
id: string;
|
|
117
|
+
type: string;
|
|
118
|
+
audience_type: string;
|
|
119
|
+
/** Nullable, unlike `audience_type` above: an org-wide notification addresses no id. */
|
|
120
|
+
audience_id: string | null;
|
|
121
|
+
/** Rendered in the viewer's active locale from the type template + `data`. */
|
|
122
|
+
title: string;
|
|
123
|
+
body: string | null;
|
|
124
|
+
/** From the type catalog; falls back to 'bell'. */
|
|
125
|
+
icon: string;
|
|
126
|
+
/** From the type catalog; falls back to 'info'. */
|
|
127
|
+
severity: string;
|
|
128
|
+
/** Owning module from the type catalog; null when uncatalogued. */
|
|
129
|
+
module: string | null;
|
|
130
|
+
data: Record<string, unknown> | null;
|
|
131
|
+
source_event_id: string | null;
|
|
132
|
+
is_read: boolean;
|
|
133
|
+
read_at: string | null;
|
|
134
|
+
created_at: string | null;
|
|
135
|
+
}
|
|
136
|
+
export interface InboxNotificationsQuery {
|
|
137
|
+
/** When true, only unread rows. */
|
|
138
|
+
unread?: boolean;
|
|
139
|
+
type?: string;
|
|
140
|
+
module?: string;
|
|
141
|
+
search?: string;
|
|
142
|
+
/** ISO datetime — only rows created at/after this instant. */
|
|
143
|
+
since?: string;
|
|
144
|
+
/** 'oldest' → ascending; anything else → newest first. */
|
|
145
|
+
sort?: 'oldest' | string;
|
|
146
|
+
page?: number;
|
|
147
|
+
per_page?: number;
|
|
148
|
+
[param: string]: string | number | boolean | null | undefined | Array<string | number>;
|
|
149
|
+
}
|
|
150
|
+
export interface InboxCounts {
|
|
151
|
+
notifications_unread: number;
|
|
152
|
+
actions_open: number;
|
|
153
|
+
}
|
|
154
|
+
export declare function createInboxNamespace(http: Http): {
|
|
155
|
+
/**
|
|
156
|
+
* GET /api/inbox/feed — the combined, urgency-ordered attention feed
|
|
157
|
+
* (unread notifications + open action items). Returns `{data, meta}` where
|
|
158
|
+
* `meta` carries a `summary` block (NOT paginator meta).
|
|
159
|
+
*/
|
|
160
|
+
feed: (query?: AttentionFeedQuery) => Promise<AttentionFeedResponse>;
|
|
161
|
+
actions: {
|
|
162
|
+
/** GET /api/inbox/actions — the caller's open work queue (bare `{data}`, no pagination). */
|
|
163
|
+
list: (query?: InboxActionsQuery) => Promise<InboxActionItemsResponse>;
|
|
164
|
+
/** POST /api/inbox/actions/{id}/acknowledge — needs `inbox.manage`. */
|
|
165
|
+
acknowledge: (id: string) => Promise<{
|
|
166
|
+
data: InboxActionItem;
|
|
167
|
+
}>;
|
|
168
|
+
/** POST /api/inbox/actions/{id}/snooze — `until` is a required future ISO datetime. Needs `inbox.manage`. */
|
|
169
|
+
snooze: (id: string, until: string) => Promise<{
|
|
170
|
+
data: InboxActionItem;
|
|
171
|
+
}>;
|
|
172
|
+
/** POST /api/inbox/actions/{id}/dismiss — optional free-text `reason`. Needs `inbox.manage`. */
|
|
173
|
+
dismiss: (id: string, reason?: string | null) => Promise<{
|
|
174
|
+
data: InboxActionItem;
|
|
175
|
+
}>;
|
|
176
|
+
};
|
|
177
|
+
/** GET /api/inbox/count — the two nav-badge numbers. */
|
|
178
|
+
count: () => Promise<InboxCounts>;
|
|
179
|
+
notifications: {
|
|
180
|
+
/** GET /api/inbox/notifications — the caller's per-viewer feed, paginated `{data, meta}`. */
|
|
181
|
+
list: (query?: InboxNotificationsQuery) => Promise<Paginated<InboxNotification>>;
|
|
182
|
+
/** POST /api/inbox/notifications/{id}/read — mark one read for the caller. */
|
|
183
|
+
read: (id: string) => Promise<{
|
|
184
|
+
data: InboxNotification;
|
|
185
|
+
}>;
|
|
186
|
+
/** POST /api/inbox/notifications/{id}/unread — mark one unread for the caller. */
|
|
187
|
+
unread: (id: string) => Promise<{
|
|
188
|
+
data: InboxNotification;
|
|
189
|
+
}>;
|
|
190
|
+
/** POST /api/inbox/notifications/{id}/restore — restore a cleared row to the feed. */
|
|
191
|
+
restore: (id: string) => Promise<{
|
|
192
|
+
data: InboxNotification;
|
|
193
|
+
}>;
|
|
194
|
+
/** DELETE /api/inbox/notifications/{id} — clear one row from the caller's feed. */
|
|
195
|
+
destroy: (id: string) => Promise<{
|
|
196
|
+
data: InboxNotification;
|
|
197
|
+
}>;
|
|
198
|
+
/** POST /api/inbox/notifications/read-all — mark all read (204). */
|
|
199
|
+
readAll: () => Promise<void>;
|
|
200
|
+
/** POST /api/inbox/notifications/unread-all — mark all unread (204). */
|
|
201
|
+
unreadAll: () => Promise<void>;
|
|
202
|
+
/** DELETE /api/inbox/notifications — clear all rows from the caller's feed (204). */
|
|
203
|
+
destroyAll: () => Promise<void>;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
export type InboxNamespace = ReturnType<typeof createInboxNamespace>;
|
package/dist/inbox.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export function createInboxNamespace(http) {
|
|
2
|
+
return {
|
|
3
|
+
|
|
4
|
+
feed: (query) => http.get('/api/inbox/feed', { params: query }),
|
|
5
|
+
actions: {
|
|
6
|
+
|
|
7
|
+
list: (query) => http.get('/api/inbox/actions', { params: query }),
|
|
8
|
+
|
|
9
|
+
acknowledge: (id) => http.post(`/api/inbox/actions/${id}/acknowledge`),
|
|
10
|
+
|
|
11
|
+
snooze: (id, until) => http.post(`/api/inbox/actions/${id}/snooze`, { until }),
|
|
12
|
+
|
|
13
|
+
dismiss: (id, reason) => http.post(`/api/inbox/actions/${id}/dismiss`, { reason }),
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
count: () => http.get('/api/inbox/count'),
|
|
17
|
+
notifications: {
|
|
18
|
+
|
|
19
|
+
list: (query) => http.get('/api/inbox/notifications', { params: query }),
|
|
20
|
+
|
|
21
|
+
read: (id) => http.post(`/api/inbox/notifications/${id}/read`),
|
|
22
|
+
|
|
23
|
+
unread: (id) => http.post(`/api/inbox/notifications/${id}/unread`),
|
|
24
|
+
|
|
25
|
+
restore: (id) => http.post(`/api/inbox/notifications/${id}/restore`),
|
|
26
|
+
|
|
27
|
+
destroy: (id) => http.delete(`/api/inbox/notifications/${id}`),
|
|
28
|
+
|
|
29
|
+
readAll: () => http.post('/api/inbox/notifications/read-all'),
|
|
30
|
+
|
|
31
|
+
unreadAll: () => http.post('/api/inbox/notifications/unread-all'),
|
|
32
|
+
|
|
33
|
+
destroyAll: () => http.delete('/api/inbox/notifications'),
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @nuwah/vertical-sdk — the typed, stack-agnostic client a vertical uses to
|
|
3
|
+
* consume nuwah-core's modular-monolith module APIs with a bearer token.
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
*
|
|
7
|
+
* import { createNuwahClient } from '@nuwah/vertical-sdk';
|
|
8
|
+
*
|
|
9
|
+
* const nuwah = createNuwahClient({
|
|
10
|
+
* baseUrl: 'http://localhost:8090',
|
|
11
|
+
* getToken: () => authStore.accessToken, // sync or async
|
|
12
|
+
* });
|
|
13
|
+
*
|
|
14
|
+
* const { data, meta } = await nuwah.crm.contacts.list({ search: 'ali' });
|
|
15
|
+
* const invoice = await nuwah.accounting.invoices.get(uuid);
|
|
16
|
+
*/
|
|
17
|
+
import { type NuwahClientConfig, type Http } from './http.js';
|
|
18
|
+
import { type CrmNamespace } from './crm.js';
|
|
19
|
+
import { type BookingsNamespace } from './bookings.js';
|
|
20
|
+
import { type BookingsExtraNamespace } from './bookings-extra.js';
|
|
21
|
+
import { type AccountingNamespace } from './accounting.js';
|
|
22
|
+
import { type FinanceInsights } from './finance-insights.js';
|
|
23
|
+
import { type HrNamespace } from './hr.js';
|
|
24
|
+
import { type PosNamespace } from './pos.js';
|
|
25
|
+
import { type InventoryNamespace } from './inventory.js';
|
|
26
|
+
import { type FixedAssetsNamespace } from './fixed-assets.js';
|
|
27
|
+
import { type PayrollNamespace } from './payroll.js';
|
|
28
|
+
import { type SalesNamespace } from './sales.js';
|
|
29
|
+
import { type ProcurementNamespace } from './procurement.js';
|
|
30
|
+
import { type FilesNamespace } from './files.js';
|
|
31
|
+
import { type PlatformNamespace } from './platform.js';
|
|
32
|
+
import { type DocumentsNamespace } from './documents.js';
|
|
33
|
+
import { type DocsNamespace } from './docs.js';
|
|
34
|
+
import { type ReportingNamespace } from './reporting.js';
|
|
35
|
+
import { type DashboardsNamespace } from './dashboards.js';
|
|
36
|
+
import { type CampaignsNamespace } from './campaigns.js';
|
|
37
|
+
import { type InboxNamespace } from './inbox.js';
|
|
38
|
+
import { type AuditNamespace } from './audit.js';
|
|
39
|
+
import { type ExportsNamespace } from './exports.js';
|
|
40
|
+
import { type AnalyticsNamespace } from './analytics.js';
|
|
41
|
+
import { type WorkbenchNamespace } from './workbench.js';
|
|
42
|
+
import { type WorkspaceNamespace } from './workspace.js';
|
|
43
|
+
import { type AwardsNamespace } from './awards.js';
|
|
44
|
+
import { type PortfolioNamespace } from './portfolio.js';
|
|
45
|
+
import { type AtlasNamespace } from './atlas.js';
|
|
46
|
+
import { type PartyNamespace } from './party.js';
|
|
47
|
+
import { type ActorsNamespace } from './actors.js';
|
|
48
|
+
import { type ConnectionsNamespace } from './connections.js';
|
|
49
|
+
import { type PublicationsNamespace } from './publications.js';
|
|
50
|
+
import { type ReactionsNamespace } from './reactions.js';
|
|
51
|
+
import { type DelegationsNamespace } from './delegations.js';
|
|
52
|
+
import { type MyDataNamespace } from './my-data.js';
|
|
53
|
+
import { type RelationshipsNamespace } from './relationships.js';
|
|
54
|
+
import { type VaultNamespace } from './vault.js';
|
|
55
|
+
import { type PersonDataNamespace } from './person-data.js';
|
|
56
|
+
import { type InsightsNamespace } from './insights.js';
|
|
57
|
+
import { type FeedsNamespace } from './feeds.js';
|
|
58
|
+
import { type StoredValueNamespace } from './stored-value.js';
|
|
59
|
+
import { type PersonNotificationsNamespace } from './person-notifications.js';
|
|
60
|
+
import { type SharesNamespace } from './shares.js';
|
|
61
|
+
import { type DraftsNamespace, type WorkspaceDraftsNamespace } from './drafts.js';
|
|
62
|
+
import { type ExchangesNamespace } from './exchanges.js';
|
|
63
|
+
import { type RatingsNamespace } from './ratings.js';
|
|
64
|
+
import { type WishlistsNamespace } from './wishlists.js';
|
|
65
|
+
import { type PersonAddressesNamespace } from './person-addresses.js';
|
|
66
|
+
import { type ShoppingAssistantNamespace } from './shopping-assistant.js';
|
|
67
|
+
import { type PersonLocationsNamespace } from './person-locations.js';
|
|
68
|
+
import { type PersonCartNamespace } from './person-cart.js';
|
|
69
|
+
import { type RecipientOrdersNamespace } from './recipient-orders.js';
|
|
70
|
+
import { type ConversationInfoNamespace } from './conversation-info.js';
|
|
71
|
+
import { type ContributionsNamespace } from './contributions.js';
|
|
72
|
+
import { type CommerceAiNamespace } from './commerce-ai.js';
|
|
73
|
+
import { type MarketplaceNamespace } from './marketplace.js';
|
|
74
|
+
import { createOccasionsNamespace } from './occasions.js';
|
|
75
|
+
import { createMetricsNamespace } from './metrics.js';
|
|
76
|
+
import { type FulfilmentJobsNamespace } from './fulfilment-jobs.js';
|
|
77
|
+
import { type FulfilmentNamespace } from './fulfilment.js';
|
|
78
|
+
import { type LocationSharingNamespace } from './location-sharing.js';
|
|
79
|
+
import { type ShopNamespace } from './shop.js';
|
|
80
|
+
import { type PersonMessagingNamespace } from './person-messaging.js';
|
|
81
|
+
import { type ListingsNamespace } from './listings.js';
|
|
82
|
+
import { type PersonalisationNamespace } from './personalisation.js';
|
|
83
|
+
import { type MediaNamespace } from './media.js';
|
|
84
|
+
import { type SpacesNamespace } from './spaces.js';
|
|
85
|
+
import { type ModerationNamespace } from './moderation.js';
|
|
86
|
+
import { type EngagementsNamespace } from './engagements.js';
|
|
87
|
+
import { type CatalogsNamespace } from './catalogs.js';
|
|
88
|
+
import { type MatchingNamespace } from './matching.js';
|
|
89
|
+
import { type AiNamespace } from './ai.js';
|
|
90
|
+
import { type ContentControlNamespace } from './content-control.js';
|
|
91
|
+
import { type ConversationAssistNamespace } from './conversation-assist.js';
|
|
92
|
+
import { type BuilderNamespace } from './builder.js';
|
|
93
|
+
import { type BuilderReposNamespace } from './builder-repos.js';
|
|
94
|
+
import { type BuilderCodeNamespace } from './builder-code.js';
|
|
95
|
+
import { type BuilderCoreGapsNamespace } from './builder-core-gaps.js';
|
|
96
|
+
import { type VerticalRuntimeNamespace } from './vertical-runtime.js';
|
|
97
|
+
import { type OnboardingNamespace } from './onboarding.js';
|
|
98
|
+
import { type SearchRankingNamespace } from './ranking.js';
|
|
99
|
+
import { type PromotionsNamespace } from './promotions.js';
|
|
100
|
+
import { type PersonChatAssistNamespace } from './person-chat-assist.js';
|
|
101
|
+
export interface NuwahClient {
|
|
102
|
+
/** CRM module — `/api/crm/*`. */
|
|
103
|
+
crm: CrmNamespace;
|
|
104
|
+
/** Bookings module (incl. `bookings.insurance`) — `/api/bookings/*`. */
|
|
105
|
+
bookings: BookingsNamespace;
|
|
106
|
+
/**
|
|
107
|
+
* The rest of the Bookings module — the surface `bookings` above does not cover:
|
|
108
|
+
* annotations, care pathways, exercises and prescriptions, memberships and plans,
|
|
109
|
+
* packages, reminders, session series, subjects, terminology, treatment plans and forms.
|
|
110
|
+
*
|
|
111
|
+
* Separate from `bookings` only because it arrived separately: it was `lib/bookings-extra.ts`,
|
|
112
|
+
* written once per vertical. Folding the two together is a later, mechanical step.
|
|
113
|
+
*/
|
|
114
|
+
bookingsExtra: BookingsExtraNamespace;
|
|
115
|
+
/** Accounting module (incl. `claims`, `bills`, reports…) — `/api/accounting/*`. */
|
|
116
|
+
accounting: AccountingNamespace;
|
|
117
|
+
/**
|
|
118
|
+
* Accrual mechanics derived from Accounting — the deferred-revenue position, its
|
|
119
|
+
* recognition movement over a period, and the client-vs-payer receivable split.
|
|
120
|
+
* Composes `accounting` above and fetches nothing of its own.
|
|
121
|
+
*/
|
|
122
|
+
financeInsights: FinanceInsights;
|
|
123
|
+
/** HR module (incl. attendance, leave, org) — `/api/hr/*`. */
|
|
124
|
+
hr: HrNamespace;
|
|
125
|
+
/** POS module — `/api/pos/*`. */
|
|
126
|
+
pos: PosNamespace;
|
|
127
|
+
/** Inventory module — `/api/inventory/*`. */
|
|
128
|
+
inventory: InventoryNamespace;
|
|
129
|
+
/** Fixed Assets module — `/api/fixed-assets/*`. */
|
|
130
|
+
fixedAssets: FixedAssetsNamespace;
|
|
131
|
+
/** Payroll module — `/api/payroll/*`. */
|
|
132
|
+
payroll: PayrollNamespace;
|
|
133
|
+
/** Sales module (orders, fulfillment, billing, returns, reports) — `/api/sales/*`. */
|
|
134
|
+
sales: SalesNamespace;
|
|
135
|
+
/** Procurement module (vendors, POs, receiving, matching, requisitions, RFQs, reports) — `/api/procurement/*`. */
|
|
136
|
+
procurement: ProcurementNamespace;
|
|
137
|
+
/** Platform Files — `/api/platform/files` (patient/document attachments). */
|
|
138
|
+
files: FilesNamespace;
|
|
139
|
+
/** Platform (super-admin) control plane — `/api/platform/*` (document-template gallery). */
|
|
140
|
+
platform: PlatformNamespace;
|
|
141
|
+
/** Document extraction (AI scan → structured fields) — `/api/documents/*`. */
|
|
142
|
+
documents: DocumentsNamespace;
|
|
143
|
+
/**
|
|
144
|
+
* Docs suite (co-edited Office files, versions, templates, shares) — `/api/docs/*`.
|
|
145
|
+
* Distinct from `documents` above: this one edits files, that one extracts fields.
|
|
146
|
+
*/
|
|
147
|
+
docs: DocsNamespace;
|
|
148
|
+
/** AI Reporting Assistant (natural-language ERP Q&A) — `/api/v1/ai/*`. */
|
|
149
|
+
reporting: ReportingNamespace;
|
|
150
|
+
/** Dashboards module (generic per-user + tenant-shared saved dashboards) — `/api/dashboards/*`. */
|
|
151
|
+
dashboards: DashboardsNamespace;
|
|
152
|
+
/** Campaigns module (broadcast center overview) — `/api/campaigns/*`. */
|
|
153
|
+
campaigns: CampaignsNamespace;
|
|
154
|
+
/** Inbox module (attention feed, action queue, notifications, badge counts) — `/api/inbox/*`. */
|
|
155
|
+
inbox: InboxNamespace;
|
|
156
|
+
/** Audit module (Spatie activity log + immutable financial audit chain) — `/api/audit/*`. */
|
|
157
|
+
audit: AuditNamespace;
|
|
158
|
+
/** Exports module (central export catalog, previews, presets, CSV/XLSX download) — `/api/exports/*`. */
|
|
159
|
+
exports: ExportsNamespace;
|
|
160
|
+
/** Analytics read-model (projected per-tenant daily aggregate facts) — `/api/analytics/*`. */
|
|
161
|
+
analytics: AnalyticsNamespace;
|
|
162
|
+
workbench: WorkbenchNamespace;
|
|
163
|
+
/**
|
|
164
|
+
* Workspace module (the shell's source of truth: roles, nav, entitlements,
|
|
165
|
+
* per-person preferences, role grants) — `/api/workspace/*`. Distinct from
|
|
166
|
+
* `workbench` above, which is the cross-org person plane.
|
|
167
|
+
*/
|
|
168
|
+
workspace: WorkspaceNamespace;
|
|
169
|
+
awards: AwardsNamespace;
|
|
170
|
+
portfolio: PortfolioNamespace;
|
|
171
|
+
/** Atlas module (designs, blocks, edges, versions, goals, discussions) — `/api/v1/atlas/*`. */
|
|
172
|
+
atlas: AtlasNamespace;
|
|
173
|
+
/** Party directory (the CRM/identity plane underneath contacts) — `/api/v1/party/*`. */
|
|
174
|
+
party: PartyNamespace;
|
|
175
|
+
/** Person-domain profiles, memberships and the acting header — `/api/person/actors/*`. */
|
|
176
|
+
actors: ActorsNamespace;
|
|
177
|
+
/** The social graph — `/api/person/connections/*`. */
|
|
178
|
+
connections: ConnectionsNamespace;
|
|
179
|
+
/** Content items by a party — `/api/person/publications/*`. */
|
|
180
|
+
publications: PublicationsNamespace;
|
|
181
|
+
/** Declared reactions on any registered subject — `/api/person/reactions/*`. */
|
|
182
|
+
reactions: ReactionsNamespace;
|
|
183
|
+
/** Acting for another person, guardianships and dependents — `/api/person/delegations/*`, `/api/person/dependents/*`. */
|
|
184
|
+
delegations: DelegationsNamespace;
|
|
185
|
+
/** "My data and who has it", consent requests and the majority review — `/api/person/data-access/*`. */
|
|
186
|
+
myData: MyDataNamespace;
|
|
187
|
+
/** The people picker (connections first, then an exact handle) — `/api/person/relationships/*`. */
|
|
188
|
+
relationships: RelationshipsNamespace;
|
|
189
|
+
/** The person's own records of things and facts, proposals and transfers — `/api/person/vault/*`. */
|
|
190
|
+
vault: VaultNamespace;
|
|
191
|
+
/** An app's gated reads of person data, its consent requests and vault proposals — `/api/person-data/*`. */
|
|
192
|
+
personData: PersonDataNamespace;
|
|
193
|
+
/** A profile's (or the person's own) daily insights, and profile engagement capture — `/api/person/insights/*`. */
|
|
194
|
+
insights: InsightsNamespace;
|
|
195
|
+
/** Declared feeds assembled per viewer — `/api/person/feeds/*`. */
|
|
196
|
+
feeds: FeedsNamespace;
|
|
197
|
+
/** A holder's stored value and an organisation issuing/redeeming it — `/api/person/stored-value/*`, `/api/stored-value/*`. */
|
|
198
|
+
storedValue: StoredValueNamespace;
|
|
199
|
+
/** The person's own notifications, counts, read state, preferences and decisions — `/api/person/notifications/*`. (`inbox` is the tenant attention feed.) */
|
|
200
|
+
personNotifications: PersonNotificationsNamespace;
|
|
201
|
+
/** Share a subject into conversations as a live card, or out as a signed link — `/api/person/shares/*`. */
|
|
202
|
+
shares: SharesNamespace;
|
|
203
|
+
/** A person's unfinished work on declared surfaces, resumable on any device — `/api/person/drafts/*`. */
|
|
204
|
+
drafts: DraftsNamespace;
|
|
205
|
+
/** A member's unfinished work on the bound organisation's records — `/api/drafts/*` (tenant database). */
|
|
206
|
+
workspaceDrafts: WorkspaceDraftsNamespace;
|
|
207
|
+
/** Multi-party agreements in versions, accepted per version and fulfilled leg by leg — `/api/person/exchanges/*`. */
|
|
208
|
+
exchanges: ExchangesNamespace;
|
|
209
|
+
/** Person-plane ratings (blind until both rated) and reputations — `/api/person/ratings/*`. */
|
|
210
|
+
ratings: RatingsNamespace;
|
|
211
|
+
/** Lists shared with the person and claims on their items — `/api/wishlists/*` (orgless). */
|
|
212
|
+
wishlists: WishlistsNamespace;
|
|
213
|
+
/** The person's saved places (one address book for delivery and for sharing a location) — `/api/person/addresses`. */
|
|
214
|
+
personAddresses: PersonAddressesNamespace;
|
|
215
|
+
/** The shopping assistant: answers from shops' real catalogues, with cited items and proposals — `/api/person/shopping-assistant/ask`. */
|
|
216
|
+
shoppingAssistant: ShoppingAssistantNamespace;
|
|
217
|
+
commerceAi: CommerceAiNamespace;
|
|
218
|
+
marketplace: MarketplaceNamespace;
|
|
219
|
+
occasions: ReturnType<typeof createOccasionsNamespace>;
|
|
220
|
+
metrics: ReturnType<typeof createMetricsNamespace>;
|
|
221
|
+
fulfilmentJobs: FulfilmentJobsNamespace;
|
|
222
|
+
fulfilment: FulfilmentNamespace;
|
|
223
|
+
locationSharing: LocationSharingNamespace;
|
|
224
|
+
/** Sharing a location into a conversation as a snapshot message — `/api/person/conversations/{conversation}/locations`. */
|
|
225
|
+
personLocations: PersonLocationsNamespace;
|
|
226
|
+
/** One cart across shops: lines, re-quote, checkout into one order per shop, buy again — `/api/person/cart/*`. */
|
|
227
|
+
personCart: PersonCartNamespace;
|
|
228
|
+
/** Ordering for someone else: compose, the claim link, the recipient's choice, the shop's terms — `/api/person/recipient-orders/*`. */
|
|
229
|
+
recipientOrders: RecipientOrdersNamespace;
|
|
230
|
+
/** A conversation's contact info: the other person or group, their published catalogue, groups in common, group controls — `/api/person/conversations/{id}/info`. */
|
|
231
|
+
conversationInfo: ConversationInfoNamespace;
|
|
232
|
+
/** Contribution drives, their settlement mode, held payments and purchase — `/api/person/contribution-drives/*`. */
|
|
233
|
+
contributions: ContributionsNamespace;
|
|
234
|
+
/** Shop returns and stored-value tenders (org) and a person's own returns and balance payments. */
|
|
235
|
+
shop: ShopNamespace;
|
|
236
|
+
/** The person messenger: person-to-person rooms, and a profile's shared inbox (acting as it). */
|
|
237
|
+
personMessaging: PersonMessagingNamespace;
|
|
238
|
+
/** Things people and business profiles offer — `/api/person/listings/*` (declared lists, saved searches, offers). */
|
|
239
|
+
listings: ListingsNamespace;
|
|
240
|
+
/** Whether the person's own activity may shape their feeds' order — `/api/person/preferences/personalisation`. */
|
|
241
|
+
personalisation: PersonalisationNamespace;
|
|
242
|
+
/** Person-plane files: declared purposes, resumable uploads, batched descriptions — `/api/person/media/*`. */
|
|
243
|
+
media: MediaNamespace;
|
|
244
|
+
/** Communities owned by a person or a profile, in a product's own words — `/api/person/spaces/*`. */
|
|
245
|
+
spaces: SpacesNamespace;
|
|
246
|
+
/** Reports, cases, decisions and the one appeal — `/api/person/reports`, `/api/person/moderation/*`. */
|
|
247
|
+
moderation: ModerationNamespace;
|
|
248
|
+
/** The one door to ask, signal and act on any shared subject — `/api/person/engagements/*`. */
|
|
249
|
+
engagements: EngagementsNamespace;
|
|
250
|
+
/** Business catalogs, cross-catalog discovery, collections and selections — `/api/person/catalog/*`. */
|
|
251
|
+
catalogs: CatalogsNamespace;
|
|
252
|
+
/** A party's haves and wants matched into giving rings — `/api/person/matching/*`. */
|
|
253
|
+
matching: MatchingNamespace;
|
|
254
|
+
/** AI switches, budgets, usage, a person's own AI settings, assistant turns and proposals — `/api/ai/*`, `/api/person/ai/*`. */
|
|
255
|
+
ai: AiNamespace;
|
|
256
|
+
/** Screening previews, an author's own screenings and an organisation's rules — `/api/person/content-control/*`, `/api/content-control/*`. */
|
|
257
|
+
contentControl: ContentControlNamespace;
|
|
258
|
+
/** A business profile's inbox assistant: suggestions, handling, settings and saved answers — `/api/person/actor-inbox/*`. */
|
|
259
|
+
conversationAssist: ConversationAssistNamespace;
|
|
260
|
+
/** The builder: blueprints, their versions and review, builder sessions and proposed changes — `/api/builder/*`. */
|
|
261
|
+
builder: BuilderNamespace;
|
|
262
|
+
/** A blueprint's code repository at level 3: read its state, eject it, export the bundle — `/api/builder/blueprints/{id}/repo*`. */
|
|
263
|
+
builderRepos: BuilderReposNamespace;
|
|
264
|
+
/** A level-3 blueprint's code: files, adapters, CI results and its release review — `/api/builder/blueprints/{id}/code*`. */
|
|
265
|
+
builderCode: BuilderCodeNamespace;
|
|
266
|
+
/** The core gaps a developer recorded, their status and adapter-swap proposals — `/api/builder/core-gaps*`. */
|
|
267
|
+
builderCoreGaps: BuilderCoreGapsNamespace;
|
|
268
|
+
/** The runtime manifest a published blueprint becomes, previews of a draft, and interpreting a document — `/api/vertical-runtime/*`. */
|
|
269
|
+
verticalRuntime: VerticalRuntimeNamespace;
|
|
270
|
+
/** Setup checklists (organisation, person, profile) and their assistants — `/api/onboarding/*`, `/api/person/onboarding/*`, `/api/person/actor-onboarding/*`. */
|
|
271
|
+
onboarding: OnboardingNamespace;
|
|
272
|
+
/** Why a search result ranked where it did, and sponsored search slots — `/api/person/search/*`. */
|
|
273
|
+
searchRanking: SearchRankingNamespace;
|
|
274
|
+
/** Sponsored content: an advertiser's campaigns, the audience estimate and report, and a person's hide, why and click — `/api/person/promotions/*`. */
|
|
275
|
+
promotions: PromotionsNamespace;
|
|
276
|
+
/** A person's AI in a conversation (summaries, reply drafts, opt-out) and their AI overview — `/api/person/conversations/{id}/ai*`, `/api/person/ai/*`. */
|
|
277
|
+
personChatAssist: PersonChatAssistNamespace;
|
|
278
|
+
/**
|
|
279
|
+
* The raw verb surface (get/post/put/patch/delete) for endpoints not yet
|
|
280
|
+
* wrapped by a typed namespace. Bearer + JSON handling still applies.
|
|
281
|
+
*/
|
|
282
|
+
http: Http;
|
|
283
|
+
}
|
|
284
|
+
/** Build a typed core-API client for a vertical. */
|
|
285
|
+
export declare function createNuwahClient(config: NuwahClientConfig): NuwahClient;
|
|
286
|
+
export { NuwahApiError, setHttpObserver, refusalReason, isIdempotencyKeyReused, IDEMPOTENCY_KEY_REUSED } from './http.js';
|
|
287
|
+
export { NUWAH_API_VERSION, NUWAH_API_MEDIA_TYPE, deprecationNoticeFrom, type DeprecationNotice } from './http.js';
|
|
288
|
+
export { createActiveOrgStore, fetchMyOrgIds, type ActiveOrgStore } from './active-org.js';
|
|
289
|
+
export type { NuwahClientConfig, Http, RequestOptions, QueryParams, QueryValue, HttpObserver, HttpCallRecord, } from './http.js';
|
|
290
|
+
export type { Translatable, Paginated, PaginationMeta, LaravelResourceCollection, LaravelPaginator, ListQuery, } from './types.js';
|
|
291
|
+
export * from './authentication.js';
|
|
292
|
+
export * from './crm.js';
|
|
293
|
+
export * from './bookings.js';
|
|
294
|
+
export * from './bookings-extra.js';
|
|
295
|
+
export * from './accounting.js';
|
|
296
|
+
export * from './money.js';
|
|
297
|
+
export * from './finance-insights.js';
|
|
298
|
+
export * from './hr.js';
|
|
299
|
+
export * from './pos.js';
|
|
300
|
+
export * from './inventory.js';
|
|
301
|
+
export * from './fixed-assets.js';
|
|
302
|
+
export * from './payroll.js';
|
|
303
|
+
export * from './sales.js';
|
|
304
|
+
export * from './procurement.js';
|
|
305
|
+
export * from './files.js';
|
|
306
|
+
export * from './platform.js';
|
|
307
|
+
export * from './patient.js';
|
|
308
|
+
export * from './documents.js';
|
|
309
|
+
export * from './docs.js';
|
|
310
|
+
export * from './reporting.js';
|
|
311
|
+
export * from './dashboards.js';
|
|
312
|
+
export * from './campaigns.js';
|
|
313
|
+
export * from './inbox.js';
|
|
314
|
+
export * from './audit.js';
|
|
315
|
+
export * from './exports.js';
|
|
316
|
+
export * from './analytics.js';
|
|
317
|
+
export * from './workbench.js';
|
|
318
|
+
export * from './workspace.js';
|
|
319
|
+
export * from './awards.js';
|
|
320
|
+
export * from './portfolio.js';
|
|
321
|
+
export * from './atlas.js';
|
|
322
|
+
export * from './party.js';
|
|
323
|
+
export * from './actors.js';
|
|
324
|
+
export * from './connections.js';
|
|
325
|
+
export * from './publications.js';
|
|
326
|
+
export * from './reactions.js';
|
|
327
|
+
export * from './delegations.js';
|
|
328
|
+
export * from './my-data.js';
|
|
329
|
+
export * from './relationships.js';
|
|
330
|
+
export * from './vault.js';
|
|
331
|
+
export * from './person-data.js';
|
|
332
|
+
export * from './person-data-webhooks.js';
|
|
333
|
+
export * from './insights.js';
|
|
334
|
+
export * from './feeds.js';
|
|
335
|
+
export * from './stored-value.js';
|
|
336
|
+
export * from './person-notifications.js';
|
|
337
|
+
export * from './shares.js';
|
|
338
|
+
export * from './drafts.js';
|
|
339
|
+
export * from './exchanges.js';
|
|
340
|
+
export * from './ratings.js';
|
|
341
|
+
export * from './wishlists.js';
|
|
342
|
+
export * from './person-addresses.js';
|
|
343
|
+
export * from './shopping-assistant.js';
|
|
344
|
+
export * from './commerce-ai.js';
|
|
345
|
+
export * from './person-locations.js';
|
|
346
|
+
export * from './person-cart.js';
|
|
347
|
+
export * from './recipient-orders.js';
|
|
348
|
+
export * from './conversation-info.js';
|
|
349
|
+
export * from './contributions.js';
|
|
350
|
+
export * from './shop.js';
|
|
351
|
+
export * from './person-messaging.js';
|
|
352
|
+
export * from './list-query.js';
|
|
353
|
+
export * from './listings.js';
|
|
354
|
+
export * from './personalisation.js';
|
|
355
|
+
export * from './media.js';
|
|
356
|
+
export * from './spaces.js';
|
|
357
|
+
export * from './moderation.js';
|
|
358
|
+
export * from './engagements.js';
|
|
359
|
+
export * from './catalogs.js';
|
|
360
|
+
export * from './matching.js';
|
|
361
|
+
export * from './event-stream.js';
|
|
362
|
+
export * from './ai.js';
|
|
363
|
+
export * from './content-control.js';
|
|
364
|
+
export * from './ranking.js';
|
|
365
|
+
export * from './conversation-assist.js';
|
|
366
|
+
export * from './builder.js';
|
|
367
|
+
export * from './builder-repos.js';
|
|
368
|
+
export * from './builder-code.js';
|
|
369
|
+
export * from './builder-core-gaps.js';
|
|
370
|
+
export * from './blueprint/index.js';
|
|
371
|
+
export * from './vertical-runtime.js';
|
|
372
|
+
export * from './onboarding.js';
|
|
373
|
+
export { createPromotionsNamespace } from './promotions.js';
|
|
374
|
+
export type { Campaign as PromotionCampaign, CampaignStatus, CampaignPausedReason, PromotionHideScope, PromotionsRefusalReason, CampaignTargeting, CampaignInput, CampaignPage, AudienceEstimate, CampaignReportCell, CampaignReport, PromotionWhyCriterion, PromotionWhy, CampaignListQuery, PromotionsNamespace, } from './promotions.js';
|
|
375
|
+
export * from './person-chat-assist.js';
|
|
376
|
+
export * from './pagination.js';
|
|
377
|
+
export type { PurchaseOrder, PurchaseOrderLine, CreatePurchaseOrderInput, UpdatePurchaseOrderInput, PurchaseOrderListQuery, } from './inventory.js';
|
|
378
|
+
export type { PurchaseOrder as ProcurementPurchaseOrder, PurchaseOrderLine as ProcurementPurchaseOrderLine, CreatePurchaseOrderInput as CreateProcurementPurchaseOrderInput, UpdatePurchaseOrderInput as UpdateProcurementPurchaseOrderInput, PurchaseOrderListQuery as ProcurementPurchaseOrderListQuery, } from './procurement.js';
|
|
379
|
+
export * from './marketplace.js';
|
|
380
|
+
export * from './occasions.js';
|
|
381
|
+
export * from './metrics.js';
|
|
382
|
+
export * from './fulfilment-jobs.js';
|
|
383
|
+
export * from './fulfilment.js';
|
|
384
|
+
export * from './location-sharing.js';
|