@antcde/connect-ts 0.4.16 → 0.4.17-rc.0c54737

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 (78) hide show
  1. package/README.md +377 -0
  2. package/build/AntConnect.d.ts +2 -0
  3. package/build/AntConnect.d.ts.map +1 -1
  4. package/build/AntConnect.js +10 -6
  5. package/build/AntHttpClient.js +24 -49
  6. package/build/comms/client.d.ts +4 -1
  7. package/build/comms/client.d.ts.map +1 -1
  8. package/build/comms/client.js +62 -37
  9. package/build/comms/host.d.ts +7 -4
  10. package/build/comms/host.d.ts.map +1 -1
  11. package/build/comms/host.js +57 -42
  12. package/build/comms/models.d.ts +1 -0
  13. package/build/comms/models.d.ts.map +1 -1
  14. package/build/comms/recordServiceCalls.js +6 -15
  15. package/build/comms/signal.d.ts +138 -13
  16. package/build/comms/signal.d.ts.map +1 -1
  17. package/build/comms/signal.js +12 -11
  18. package/build/comms/utils.js +6 -15
  19. package/build/index.d.ts +13 -12
  20. package/build/index.d.ts.map +1 -1
  21. package/build/index.js +2 -2
  22. package/build/services/AppService.d.ts +59 -10
  23. package/build/services/AppService.d.ts.map +1 -1
  24. package/build/services/AppService.js +0 -1
  25. package/build/services/ColumnService.d.ts +60 -3
  26. package/build/services/ColumnService.d.ts.map +1 -1
  27. package/build/services/ColumnService.js +1 -0
  28. package/build/services/DmsService.d.ts +122 -21
  29. package/build/services/DmsService.d.ts.map +1 -1
  30. package/build/services/DmsService.js +60 -16
  31. package/build/services/LabelService.d.ts +4 -2
  32. package/build/services/LabelService.d.ts.map +1 -1
  33. package/build/services/LabelService.js +6 -1
  34. package/build/services/LicenseService.d.ts +42 -0
  35. package/build/services/LicenseService.d.ts.map +1 -1
  36. package/build/services/LicenseService.js +1 -0
  37. package/build/services/ProjectService.d.ts +20 -1
  38. package/build/services/ProjectService.d.ts.map +1 -1
  39. package/build/services/PropagationService.d.ts +15 -4
  40. package/build/services/PropagationService.d.ts.map +1 -1
  41. package/build/services/PropagationService.js +2 -2
  42. package/build/services/RBAC/PermissionService.d.ts +10 -3
  43. package/build/services/RBAC/PermissionService.d.ts.map +1 -1
  44. package/build/services/RBAC/PermissionService.js +1 -0
  45. package/build/services/RecordService.d.ts +94 -3
  46. package/build/services/RecordService.d.ts.map +1 -1
  47. package/build/services/RecordService.js +24 -13
  48. package/build/services/ReleaseService.d.ts +18 -0
  49. package/build/services/ReleaseService.d.ts.map +1 -0
  50. package/build/services/ReleaseService.js +5 -0
  51. package/build/services/SbsService.js +8 -2
  52. package/build/services/ScriptsService.d.ts.map +1 -1
  53. package/build/services/ScriptsService.js +4 -3
  54. package/build/services/TableService.d.ts +58 -20
  55. package/build/services/TableService.d.ts.map +1 -1
  56. package/build/services/TableService.js +13 -2
  57. package/build/services/TaskQueryService.js +1 -1
  58. package/build/services/TaskService.d.ts +18 -7
  59. package/build/services/TaskService.d.ts.map +1 -1
  60. package/build/services/TaskService.js +3 -5
  61. package/build/services/TaskServiceQueries.d.ts +1 -1
  62. package/build/services/TaskServiceQueries.js +2 -2
  63. package/build/services/TokenService.js +5 -15
  64. package/build/services/UserService.d.ts +0 -2
  65. package/build/services/UserService.d.ts.map +1 -1
  66. package/build/services/Websockets/DmsEvents.d.ts +25 -0
  67. package/build/services/Websockets/DmsEvents.d.ts.map +1 -0
  68. package/build/services/Websockets/DmsEvents.js +6 -0
  69. package/build/services/WorkflowService.d.ts +5 -3
  70. package/build/services/WorkflowService.d.ts.map +1 -1
  71. package/build/services/WorkflowService.js +21 -20
  72. package/build/services/WorkflowServiceQueries.js +1 -1
  73. package/build/types.d.ts +169 -0
  74. package/build/types.d.ts.map +1 -1
  75. package/build/types.js +19 -1
  76. package/package.json +20 -21
  77. package/schemas/app-config.schema.json +165 -0
  78. package/build/tsconfig.esm.tsbuildinfo +0 -1
package/README.md CHANGED
@@ -128,6 +128,170 @@ in the above example we fetch the projects of a given user.
128
128
 
129
129
  As we have an idea to move all projects to monorepo, maybe will be better to move to pnpm packager
130
130
 
131
+ ## queryTables Examples
132
+
133
+ The `queryTables` method lets you query one or more tables in a single request via `connect.tables.queryTables(query)`.
134
+
135
+ ### 1. Select all columns
136
+
137
+ ```typescript
138
+ const query: TablesQuery = {
139
+ tables: [{
140
+ name: 'EMPLOYEES',
141
+ project: projectId,
142
+ as: 'employees',
143
+ columns: ['*'],
144
+ }],
145
+ }
146
+ ```
147
+
148
+ ### 2. Specific columns, no filter
149
+
150
+ ```typescript
151
+ const query: TablesQuery = {
152
+ tables: [{
153
+ name: 'EMPLOYEES',
154
+ project: projectId,
155
+ as: 'employees',
156
+ columns: [
157
+ { name: 'first_name' },
158
+ { name: 'last_name' },
159
+ { name: 'department' },
160
+ ],
161
+ }],
162
+ }
163
+ ```
164
+
165
+ ### 3. Equality condition
166
+
167
+ ```typescript
168
+ const query: TablesQuery = {
169
+ tables: [{
170
+ name: 'EMPLOYEES',
171
+ project: projectId,
172
+ as: 'employees',
173
+ columns: [
174
+ {
175
+ name: 'department',
176
+ conditions: [{ operator: '=', value: 'Engineering' }],
177
+ },
178
+ { name: 'first_name' },
179
+ { name: 'last_name' },
180
+ ],
181
+ }],
182
+ }
183
+ ```
184
+
185
+ ### 4. IN query — match multiple values
186
+
187
+ ```typescript
188
+ const query: TablesQuery = {
189
+ tables: [{
190
+ name: 'EMPLOYEES',
191
+ project: projectId,
192
+ as: 'employees',
193
+ columns: [
194
+ {
195
+ name: 'status',
196
+ conditions: [{ operator: 'in', value: ['active', 'on_leave', 'probation'] }],
197
+ },
198
+ { name: 'first_name' },
199
+ { name: 'last_name' },
200
+ { name: 'department' },
201
+ ],
202
+ }],
203
+ }
204
+ ```
205
+
206
+ ### 5. Multiple conditions (AND)
207
+
208
+ ```typescript
209
+ const query: TablesQuery = {
210
+ tables: [{
211
+ name: 'EMPLOYEES',
212
+ project: projectId,
213
+ as: 'employees',
214
+ columns: [
215
+ {
216
+ name: 'department',
217
+ conditions: [{ operator: '=', value: 'Engineering' }],
218
+ },
219
+ {
220
+ name: 'status',
221
+ conditions: [{ operator: 'in', value: ['active', 'probation'] }],
222
+ },
223
+ { name: 'first_name' },
224
+ { name: 'last_name' },
225
+ ],
226
+ }],
227
+ }
228
+ ```
229
+
230
+ ### 6. Pagination + sorting
231
+
232
+ ```typescript
233
+ const query: TablesQuery = {
234
+ limit: 25,
235
+ offset: 50,
236
+ tables: [{
237
+ name: 'EMPLOYEES',
238
+ project: projectId,
239
+ as: 'employees',
240
+ columns: ['*'],
241
+ sortBy: 'last_name',
242
+ sortByOrder: 'asc',
243
+ }],
244
+ }
245
+ ```
246
+
247
+ ### 7. Multiple tables in one request
248
+
249
+ ```typescript
250
+ const query: TablesQuery = {
251
+ tables: [
252
+ {
253
+ name: 'DEPARTMENTS',
254
+ project: projectId,
255
+ as: 'departments',
256
+ columns: ['*'],
257
+ },
258
+ {
259
+ name: 'EMPLOYEES',
260
+ project: projectId,
261
+ as: 'employees',
262
+ columns: [
263
+ {
264
+ name: 'status',
265
+ conditions: [{ operator: 'in', value: ['active'] }],
266
+ },
267
+ { name: 'first_name' },
268
+ { name: 'last_name' },
269
+ { name: 'department' },
270
+ ],
271
+ },
272
+ ],
273
+ }
274
+ ```
275
+
276
+ ### Reading results
277
+
278
+ ```typescript
279
+ const response = await connect.tables.queryTables(query)
280
+
281
+ const departments = response.departments.records // records array
282
+ const employees = response.employees.records
283
+ const totalEmployees = response.employees.stats.count
284
+ ```
285
+
286
+ ### Supported condition operators
287
+
288
+ `=`, `!=`, `>`, `<`, `>=`, `<=`, `like`, `in`, `not in`, `between`, `not between`, `is null`, `is not null`
289
+
290
+ For `in` / `not in`, pass `value` as an array: `value: ['a', 'b']`.
291
+ For `between` / `not between`, pass a two-element array: `value: [10, 50]`.
292
+
293
+ ---
294
+
131
295
  ## Task Query Parameters
132
296
 
133
297
  Documentation for the `query` parameter in `TaskService.getV2Tasks()`.
@@ -398,3 +562,216 @@ const query = qs.stringify(params, {
398
562
  {
399
563
  data: Task[]
400
564
  }
565
+ ```
566
+
567
+ ---
568
+
569
+ ## App Manifest (`app-config.json`)
570
+
571
+ Every ANT app can ship an `app-config.json` in its distribution bundle. The OS and App Store read this file to discover what the app declares about itself: its version, tagline, tables, and signal topics.
572
+
573
+ ### Schema validation
574
+
575
+ A JSON Schema is published with this package at `schemas/app-config.schema.json`. Point the `$schema` key at it for editor autocompletion, hover docs, and validation:
576
+
577
+ ```json
578
+ {
579
+ "$schema": "node_modules/@antcde/connect-ts/schemas/app-config.schema.json",
580
+ "version": "1.0.0",
581
+ "tagline": "My App",
582
+ "tables": [],
583
+ "signals": {
584
+ "topics": {}
585
+ }
586
+ }
587
+ ```
588
+
589
+ ### Sending the manifest to the OS
590
+
591
+ Apps can send their manifest to the OS during the comms handshake. This makes tables and topics visible in the OS context menu without an extra API call, and works across CORS boundaries (e.g. remote OS + local dev server).
592
+
593
+ ```typescript
594
+ import { useCommsClient } from '@antcde/vue-utils'
595
+ import manifest from '../app-config.json'
596
+
597
+ const comms = useCommsClient(connect, undefined, manifest)
598
+ ```
599
+
600
+ The OS receives the manifest via the handshake ACK and exposes it on the comms host. Any app that passes a manifest will appear in the OS context menu with its declared tables and topics.
601
+
602
+ ### Tables
603
+
604
+ Tables are created in the project when the app is installed. Each entry declares a table name and its columns:
605
+
606
+ ```json
607
+ {
608
+ "tables": [
609
+ {
610
+ "name": "MY_APP_ITEMS",
611
+ "master_table": true,
612
+ "columns": [
613
+ { "name": "title", "type": "text", "required": true },
614
+ { "name": "status", "type": "dropdown", "options_value": ["draft", "active"] }
615
+ ]
616
+ }
617
+ ]
618
+ }
619
+ ```
620
+
621
+ Column types: `integer`, `text`, `text-field`, `boolean`, `date`, `link`, `email`, `dropdown`, `document`, `float`, `sbscode`, `table`.
622
+
623
+ ### Topic declarations
624
+
625
+ Topics enable generic pub/sub between apps via Echo whisper channels. Each key under `signals.topics` is a topic name (must match `[A-Za-z0-9_-]`):
626
+
627
+ ```json
628
+ {
629
+ "signals": {
630
+ "topics": {
631
+ "cursor-positions": {
632
+ "scope": "project",
633
+ "description": "Live cursor positions shared between editors",
634
+ "direction": ["send", "receive"],
635
+ "schema": { "type": "object" }
636
+ }
637
+ }
638
+ }
639
+ }
640
+ ```
641
+
642
+ | Field | Required | Description |
643
+ |-------------|----------|--------------------------------------------------------|
644
+ | `scope` | no | `"project"` (default) or `"license"` |
645
+ | `description` | no | Human-readable summary shown in the App Store |
646
+ | `direction` | no | Array of `"send"` and/or `"receive"`. Defaults to `["receive"]` |
647
+ | `schema` | no | JSON Schema describing the payload shape |
648
+
649
+ ### Sending and receiving topics
650
+
651
+ ```typescript
652
+ // publish
653
+ signal.send({ topic: { name: 'cursor-positions', data: { x: 10, y: 20 } } })
654
+
655
+ // subscribe
656
+ signal.receive((s) => {
657
+ if (s.topic?.name === 'cursor-positions') {
658
+ handleCursor(s.topic.data)
659
+ }
660
+ })
661
+ ```
662
+
663
+ The OS handles fan-out: when an app publishes a topic signal, the OS redistributes it to all other loaded apps and whispers it on the scoped Echo channel so apps in other browser tabs receive it too.
664
+
665
+ ---
666
+
667
+ ## Resource Signals
668
+
669
+ Arbitrary resource signals let apps send and receive domain-specific events (e.g., `cat`, `homeowner`, `invoice`) without modifying the core `ChangeSignal` types. Signals are distributed locally across split-screen apps and can optionally be backed by WebSocket (Echo) for backend-driven events.
670
+
671
+ ### Recipe 1: Local — send & receive across all apps
672
+
673
+ All split-screen apps receive the signal via the OS redistribution watcher. No backend needed.
674
+
675
+ #### Send
676
+
677
+ ```typescript
678
+ const { signal } = comms
679
+
680
+ signal.send({
681
+ resource: {
682
+ cat: {
683
+ id: crypto.randomUUID().slice(0, 8),
684
+ action: 'created',
685
+ data: { sound: 'meow', volume: 'loud' },
686
+ },
687
+ },
688
+ })
689
+ ```
690
+
691
+ #### Receive (raw — no Echo subscription)
692
+
693
+ ```typescript
694
+ signal.receive((s) => {
695
+ const cat = s.resource?.cat
696
+ if (cat) {
697
+ console.log(cat.id, cat.action, cat.data)
698
+ }
699
+ })
700
+ ```
701
+
702
+ #### Receive (with — also sets up Echo subscription)
703
+
704
+ ```typescript
705
+ // Also sends an `observe` signal → host subscribes to Echo channel
706
+ signal.with('cat').receive((cause) => {
707
+ console.log(cause.id, cause.action, cause.data)
708
+ })
709
+ ```
710
+
711
+ > **`signal.send()` is local only** — it never touches the backend/socket.
712
+ > The OS redistribution watcher forwards it to all other split-screen apps.
713
+ >
714
+ > `signal.receive()` catches all signals (local + Echo-backed).
715
+ > `signal.with('cat').receive()` filters for `cat` AND subscribes to the Echo channel for backend events.
716
+
717
+ ### Recipe 2: Over Socket (Echo-backed) — backend broadcasts to all clients
718
+
719
+ The backend broadcasts a `ResourceChanged` event on `App.Project.{id}.Resources`. All apps subscribed to that channel receive it.
720
+
721
+ #### Receive (project-scoped)
722
+
723
+ ```typescript
724
+ const { signal, context } = comms
725
+
726
+ watch(context, ({ project }, _, onCleanup) => {
727
+ if (project) {
728
+ onCleanup(
729
+ signal.with('cat', undefined, undefined, ['project']).receive((cause) => {
730
+ // cause.meta?.source === 'timeseries' (from Echo)
731
+ console.log(cause.id, cause.action, cause.data)
732
+ })
733
+ )
734
+ }
735
+ })
736
+ ```
737
+
738
+ #### What happens under the hood
739
+
740
+ 1. `signal.with('cat', ..., ['project'])` sends an `observe` signal to the host
741
+ 2. Host calls `newSignalEchoAdapter` → subscribes to `App.Project.{projectId}.Resources`
742
+ 3. Backend broadcasts `resource.cat.created` / `resource.cat.updated` on that channel
743
+ 4. Echo adapter receives it → sends signal back to the iframe client
744
+ 5. `cause.meta.source` is `'timeseries'`
745
+
746
+ #### Backend: broadcast via `ResourceChanged` (`app/Events/ResourceChanged.php`)
747
+
748
+ ```php
749
+ // Project-scoped — broadcasts on App.Project.{id}.Resources
750
+ broadcast(ResourceChanged::forProject(
751
+ projectId: $projectId,
752
+ resource: 'cat',
753
+ id: $catId,
754
+ action: 'updated',
755
+ data: ['sound' => 'purrr'],
756
+ ))->toOthers();
757
+
758
+ // License-scoped — broadcasts on App.License.{id}.Resources
759
+ broadcast(ResourceChanged::forLicense(
760
+ licenseId: $licenseId,
761
+ resource: 'cat',
762
+ id: $catId,
763
+ action: 'created',
764
+ data: ['sound' => 'meow'],
765
+ ))->toOthers();
766
+
767
+ // broadcastAs() returns "resource.cat.updated" / "resource.cat.created"
768
+ // broadcastWith() returns { resource, id, action, data }
769
+ ```
770
+
771
+ ### Summary
772
+
773
+ | Method | Distribution | Backend needed? | Use case |
774
+ |--------|-------------|----------------|----------|
775
+ | `signal.send()` + `signal.receive()` | Local (all split-screen apps) | No | App-to-app communication |
776
+ | `signal.with('cat').receive()` | Echo-backed | Yes — backend broadcasts | Backend-driven (default scope) |
777
+ | `signal.with('cat', ..., ['project']).receive()` | Echo-backed (project-scoped) | Yes | Backend-driven real-time updates |
@@ -15,6 +15,7 @@ import type { RBACPermissionService } from './services/RBAC/PermissionService';
15
15
  import type { RBACRoleService } from './services/RBAC/RoleService';
16
16
  import type RecordLockService from './services/RecordLockService';
17
17
  import type RecordService from './services/RecordService';
18
+ import type { ReleaseService } from './services/ReleaseService';
18
19
  import type { ResellerService } from './services/ResellerService';
19
20
  import type RevisionService from './services/RevisionService';
20
21
  import type SbsService from './services/SbsService';
@@ -68,6 +69,7 @@ export interface AntConnect {
68
69
  readonly webhookConfig: ConfigService;
69
70
  readonly notifications: NotificationService;
70
71
  readonly propagations: PropagationService;
72
+ readonly releases: ReleaseService;
71
73
  }
72
74
  export declare function newAntConnect(httpClient: AntHttpClient): AntConnect;
73
75
  export declare function newCommunityAntConnect(httpClient: AntHttpClient): PartialAntConnect;
@@ -1 +1 @@
1
- {"version":3,"file":"AntConnect.d.ts","sourceRoot":"","sources":["../src/AntConnect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAA;AACzD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AC,OAAO,CAAC;KAAG,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC,EAAE,YAAY,CAAC,CAAA;AAEjH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,CAAC,CAAA;AAE1F,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAAE,UAAU,CAAC,GAAG,UAAU,CAE1F;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAU7E"}
@@ -14,6 +14,7 @@ import { newRBACPermissionService } from './services/RBAC/PermissionService';
14
14
  import { newRBACRoleService } from './services/RBAC/RoleService';
15
15
  import { newRecordLockService } from './services/RecordLockService';
16
16
  import { newRecordService } from './services/RecordService';
17
+ import { newReleaseService } from './services/ReleaseService';
17
18
  import { newResellerService } from './services/ResellerService';
18
19
  import { newRevisionService } from './services/RevisionService';
19
20
  import { newSbsService } from './services/SbsService';
@@ -65,14 +66,15 @@ export function newAntConnect(httpClient) {
65
66
  webhookConfig: createConfigService(httpClient),
66
67
  notifications: newNotificationService(httpClient),
67
68
  propagations: newPropagationService(httpClient),
69
+ releases: newReleaseService(httpClient),
68
70
  };
69
71
  }
70
72
  export function newCommunityAntConnect(httpClient) {
71
73
  const antConnect = newAntConnect(httpClient);
72
74
  const pick = (service, calls) => {
73
- return !calls.length
75
+ return !calls?.length
74
76
  ? { [service]: antConnect[service] }
75
- : (calls !== null && calls !== void 0 ? calls : []).reduce((connect, call) => Object.assign(connect, { [service]: { [call]: antConnect[service][call] } }), {});
77
+ : (calls ?? []).reduce((connect, call) => Object.assign(connect, { [service]: { [call]: antConnect[service][call] } }), {});
76
78
  };
77
79
  return Object.assign(pick('projects', ['getProjects', 'getProject', 'createProject', 'updateProject', 'addProjectToFavorites', 'deleteProject', 'getProjectImage']), pick('tables', ['getTables', 'createTable', 'getTable', 'updateTable', 'deleteTable', 'clearTable', 'queryTables']), pick('columns', ['getColumns', 'createColumn', 'getColumn', 'updateColumn', 'deleteColumn']), pick('records', ['createRecord', 'deleteRecord', 'importRecords', 'updateRecord', 'getRecordHistory', 'getRecordDocument']), // relations are not available?
78
80
  pick('sbs', ['allSbs', 'createSbs', 'updateSbs', 'deleteSbs']), pick('tasks'));
@@ -81,11 +83,13 @@ export function newAntConnectChain(input) {
81
83
  return newChain(input);
82
84
  }
83
85
  export function newChain(input) {
84
- return new Proxy(input[input.length - 1], {
86
+ return new Proxy(input.at(-1), {
85
87
  get(target, key) {
86
- return typeof target[key] === 'object'
87
- ? newChain(input.map(e => e[key]).filter(e => typeof e === 'object'))
88
- : input.map(e => e[key]).find(e => typeof e !== 'undefined');
88
+ const t = target;
89
+ const items = input;
90
+ return typeof t[key] === 'object'
91
+ ? newChain(items.map(e => e[key]).filter(e => typeof e === 'object'))
92
+ : items.map(e => e[key]).find(e => typeof e !== 'undefined');
89
93
  },
90
94
  });
91
95
  }
@@ -1,17 +1,8 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import axios from 'axios';
11
2
  export function newAntHttpClient({ baseUrl, apiUrl, scope, token }) {
12
- const httpClient = new AntHttpClient(baseUrl !== null && baseUrl !== void 0 ? baseUrl : 'https://api.alpha.antcde.io', apiUrl !== null && apiUrl !== void 0 ? apiUrl : '/api/2.0', scope);
3
+ const httpClient = new AntHttpClient(baseUrl ?? 'https://api.alpha.antcde.io', apiUrl ?? '/api/2.0', scope);
13
4
  if (token) {
14
- httpClient.getInterceptorsManager().request.use(config => Object.assign({}, config, { headers: Object.assign(Object.assign({}, config.headers), { Authorization: `Bearer ${token}` }) }));
5
+ httpClient.getInterceptorsManager().request.use(config => Object.assign({}, config, { headers: { ...config.headers, Authorization: `Bearer ${token}` } }));
15
6
  }
16
7
  return httpClient;
17
8
  }
@@ -19,7 +10,7 @@ export class AntHttpClient {
19
10
  constructor(baseUrl, apiUrl, scope = new AbortController()) {
20
11
  this.baseUrl = baseUrl;
21
12
  this.scope = scope;
22
- this.http = axios.create(Object.assign({ baseURL: baseUrl + apiUrl }, scope));
13
+ this.http = axios.create({ baseURL: baseUrl + apiUrl, ...scope });
23
14
  this.http.defaults.headers.common.Accept = 'application/json';
24
15
  }
25
16
  getInterceptorsManager() {
@@ -28,51 +19,35 @@ export class AntHttpClient {
28
19
  getBaseUrl() {
29
20
  return this.baseUrl;
30
21
  }
31
- download(url, config) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- return this.http.get(url, Object.assign(Object.assign({}, config), this.scope));
34
- });
22
+ async download(url, config) {
23
+ return this.http.get(url, { ...config, ...this.scope });
35
24
  }
36
- downloadFile(url, config) {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- return this.http
39
- .get(url, Object.assign(Object.assign(Object.assign({}, this.scope), config), { responseType: 'blob' }))
40
- .then(r => r.data);
41
- });
25
+ async downloadFile(url, config) {
26
+ return this.http
27
+ .get(url, { ...this.scope, ...config, responseType: 'blob' })
28
+ .then(r => r.data);
42
29
  }
43
30
  // FIXME: Not see any value to save interceptors on our side instead of give client possibility
44
31
  // to use axios flows by default.
45
- get(url, config) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- return this.http.get(url, Object.assign(Object.assign({}, this.scope), config)).then(r => r.data);
48
- });
32
+ async get(url, config) {
33
+ return this.http.get(url, { ...this.scope, ...config }).then(r => r.data);
49
34
  }
50
- post(url, data, config) {
51
- return __awaiter(this, void 0, void 0, function* () {
52
- return this.http.post(url, data, Object.assign(Object.assign({}, this.scope), config)).then(r => r.data);
53
- });
35
+ async post(url, data, config) {
36
+ return this.http.post(url, data, { ...this.scope, ...config }).then(r => r.data);
54
37
  }
55
- put(url, data, config) {
56
- return __awaiter(this, void 0, void 0, function* () {
57
- return this.http.put(url, data, Object.assign(Object.assign({}, this.scope), config)).then(r => r.data);
58
- });
38
+ async put(url, data, config) {
39
+ return this.http.put(url, data, { ...this.scope, ...config }).then(r => r.data);
59
40
  }
60
- delete(url, config) {
61
- return __awaiter(this, void 0, void 0, function* () {
62
- return this.http.delete(url, Object.assign(Object.assign({}, this.scope), config)).then(r => r.data);
63
- });
41
+ async delete(url, config) {
42
+ return this.http.delete(url, { ...this.scope, ...config }).then(r => r.data);
64
43
  }
65
- patch(url, data, config) {
66
- return __awaiter(this, void 0, void 0, function* () {
67
- return this.http.patch(url, data, Object.assign(Object.assign({}, this.scope), config)).then(r => r.data);
68
- });
44
+ async patch(url, data, config) {
45
+ return this.http.patch(url, data, { ...this.scope, ...config }).then(r => r.data);
69
46
  }
70
- authenticate(userData, client_id, client_secret) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- return this.http
73
- .post('/oauth/token', Object.assign(Object.assign({}, userData), { client_id, client_secret, grant_type: 'password' }), Object.assign({ baseURL: this.baseUrl }, this.scope))
74
- .then(e => e.data);
75
- });
47
+ async authenticate(userData, client_id, client_secret) {
48
+ return this.http
49
+ .post('/oauth/token', { ...userData, client_id, client_secret, grant_type: 'password' }, { baseURL: this.baseUrl, ...this.scope })
50
+ .then(e => e.data);
76
51
  }
77
52
  params(values, prefix) {
78
53
  const encode = encodeURIComponent;
@@ -80,7 +55,7 @@ export class AntHttpClient {
80
55
  return values
81
56
  .map((v, k) => isComplex(v)
82
57
  ? this.params(v, prefix ? `${prefix}[${k}]` : `[${k}]`)
83
- : `${encode(`${prefix !== null && prefix !== void 0 ? prefix : ''}[${k}]`)}=${encode(v)}`)
58
+ : `${encode(`${prefix ?? ''}[${k}]`)}=${encode(v)}`)
84
59
  .join('&');
85
60
  }
86
61
  else {
@@ -1,13 +1,16 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
2
  import type { Observable } from 'rxjs';
3
+ import type { AppManifest } from "../services/AppService";
3
4
  import type { Context, Notepad, Notifications, Toolbar } from './models';
4
5
  import type { SignalReceiver, SignalSender } from './signal';
5
6
  import type { Scope } from './utils';
6
7
  import type { AntConnect } from "../AntConnect";
7
8
  import { Subscription } from 'rxjs';
8
- interface ClientParams {
9
+ export interface ClientParams {
9
10
  parent: Window;
10
11
  connect?: AntConnect;
12
+ /** Optional app manifest (app-config.json) sent to the host during handshake. */
13
+ manifest?: AppManifest;
11
14
  }
12
15
  interface Box {
13
16
  clientIdChanges: Observable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/comms/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,KAAK,EAAgB,KAAK,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,sBAAoB;AAE9C,OAAO,EAWL,YAAY,EAIb,MAAM,MAAM,CAAA;AAKb,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,UAAU,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