@hyperscale0/sdk 1.0.395 → 1.0.397
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/CHANGELOG.md +19 -0
- package/package.json +2 -2
- package/platform.d.ts +110 -108
package/CHANGELOG.md
CHANGED
|
@@ -8,16 +8,35 @@ Newest first. A release that changed nothing the SDK sees has no entry.
|
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
+
- `product.objects.execute` on a create takes `persons`, the person customer for each name the instrument declares.
|
|
12
|
+
|
|
13
|
+
## 1.0.396
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- `approval.list`, `approval.read` and `approval.decide`: the calls waiting on the session's member in its environment, and the decision with its reason. A call that waits answers `approval_required` with an `apr_` id; `approval_policy.list` and `approval_policy.write` read and version a tenant's bands of amount and ordered staff roles.
|
|
18
|
+
- `bank_account.read` asks the bank that mirrors an account for its status, its balance or one day's statement; `credit_observation.resolve` maps or refunds a credit the bank booked.
|
|
19
|
+
- `tenant.banking_calendar.set` replaces the company's banking calendar; `tenant.work.list` takes `staff: held`.
|
|
20
|
+
- `product.objects.preview` answers `pagesFollow` when a selection past its limit leaves pages to run after the call; `product.objects.discover` semantics carry `percentWhole`.
|
|
21
|
+
|
|
11
22
|
- `HyperscaleError.trace`, with `gate` and `remedy` lifted from it: the admission gate that refused, its law in one sentence, the facts it saw and the remedy, an operation with the fields to change or the person who must act. `RefusalTrace` types it.
|
|
12
23
|
|
|
13
24
|
- `client.call(name, input, { rehearse: true })` runs a mutation with no effect. The client sends `X-Hyperscale-Rehearsal: true`, and the call answers `OperationRehearsal`: the would-be `outcome`, `status`, `output` or `error`, receipt and ledger `postings`. A platform read refuses the option.
|
|
14
25
|
|
|
15
26
|
### Changed
|
|
16
27
|
|
|
28
|
+
- `currency` is a `string` (an ISO 4217 code) on every amount, account and statement type where it was the literal `"SAR"`. `tenant_finance_reportOutput` rows are keyed by currency and carry `totalsByCurrency`.
|
|
29
|
+
- `account.balance.retrieve` and `customer.me.retrieve` return `settled` and `available` signed: a contra account's balance is negative.
|
|
30
|
+
- A percent on a format 4 Build carries six decimals: 100% is 100,000,000 units where it was 1,000,000.
|
|
31
|
+
|
|
17
32
|
- `bank_statement` joined the `resourceKind` union: `activity.list` takes it as a filter and `activity.retrieve` can answer with it. An exhaustive switch over `resourceKind` needs the new case.
|
|
18
33
|
- `catalog.pricing.retrieve` takes no input: `catalog_pricing_retrieveInput` is `Record<string, never>`, and a call that passes `tenantId` no longer compiles.
|
|
19
34
|
- `company.close.retrieve` answers one document shape: `company_close_retrieveOutput.document` is `hyperscale.company_close.v2` with `vatReturn` and `journal` always set. Code that narrows on `hyperscale.company_close.v1` no longer compiles.
|
|
20
35
|
|
|
36
|
+
### Removed
|
|
37
|
+
|
|
38
|
+
- `agent_approval.list`, `.read`, `.approve` and `.deny`, and the `agent_approval_required` and `agent_approval_denied` errors: an agent's stopped call opens an `apr_` approval decided by `approval.decide`.
|
|
39
|
+
|
|
21
40
|
## 1.0.364
|
|
22
41
|
|
|
23
42
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperscale0/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.397",
|
|
4
4
|
"description": "JavaScript client and TypeScript types for the Hyperscale Product API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "96e0cc04162cc57d1084981b4c68651438ff52c1"
|
|
30
30
|
}
|