@omni-commerce/sdk 0.29.1 → 0.30.0
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/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -19
- package/dist/index.d.ts +27 -19
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3938,7 +3938,7 @@ interface paths {
|
|
|
3938
3938
|
};
|
|
3939
3939
|
/**
|
|
3940
3940
|
* Export Wiki
|
|
3941
|
-
* @description Export
|
|
3941
|
+
* @description Export active General pages as an OKF v0.3 bundle. Imported paths, frontmatter, and supporting files are preserved. The glossary is returned separately as SKOS in JSON-LD. Requires documents:read.
|
|
3942
3942
|
*/
|
|
3943
3943
|
get: operations["get_v1_wiki_export"];
|
|
3944
3944
|
put?: never;
|
|
@@ -3960,11 +3960,9 @@ interface paths {
|
|
|
3960
3960
|
put?: never;
|
|
3961
3961
|
/**
|
|
3962
3962
|
* Import Wiki
|
|
3963
|
-
* @description Create or update General pages from
|
|
3963
|
+
* @description Create or update General pages from an OKF v0.3 bundle. Requires documents:write. Send the files array returned by the export. Use markdown for UTF-8 text files and base64 for binary assets. Bundle-relative links resolve to pages in the destination organization.
|
|
3964
3964
|
*
|
|
3965
|
-
*
|
|
3966
|
-
*
|
|
3967
|
-
* A file updates the page that already holds its title and otherwise creates one, so importing an export is idempotent. Each file is saved on its own and reported separately.
|
|
3965
|
+
* Concepts can update a General page by its local page ID, imported path, or matching title. Re-importing the same export is idempotent. Valid concepts and supporting files are saved in one transaction, with an outcome per concept. Standalone Markdown and earlier exports are also accepted.
|
|
3968
3966
|
*/
|
|
3969
3967
|
post: operations["post_v1_wiki_import"];
|
|
3970
3968
|
delete?: never;
|
|
@@ -31694,10 +31692,16 @@ interface operations {
|
|
|
31694
31692
|
[key: string]: string;
|
|
31695
31693
|
};
|
|
31696
31694
|
data: {
|
|
31697
|
-
files:
|
|
31698
|
-
|
|
31699
|
-
|
|
31700
|
-
|
|
31695
|
+
files: (
|
|
31696
|
+
| {
|
|
31697
|
+
path: string;
|
|
31698
|
+
markdown: string;
|
|
31699
|
+
}
|
|
31700
|
+
| {
|
|
31701
|
+
path: string;
|
|
31702
|
+
base64: "" | string;
|
|
31703
|
+
}
|
|
31704
|
+
)[];
|
|
31701
31705
|
skos: {
|
|
31702
31706
|
[key: string]: unknown;
|
|
31703
31707
|
};
|
|
@@ -31746,10 +31750,16 @@ interface operations {
|
|
|
31746
31750
|
content: {
|
|
31747
31751
|
"application/json": {
|
|
31748
31752
|
organizationId?: string;
|
|
31749
|
-
files:
|
|
31750
|
-
|
|
31751
|
-
|
|
31752
|
-
|
|
31753
|
+
files: (
|
|
31754
|
+
| {
|
|
31755
|
+
path?: string;
|
|
31756
|
+
markdown: string;
|
|
31757
|
+
}
|
|
31758
|
+
| {
|
|
31759
|
+
path: string;
|
|
31760
|
+
base64: "" | string;
|
|
31761
|
+
}
|
|
31762
|
+
)[];
|
|
31753
31763
|
};
|
|
31754
31764
|
};
|
|
31755
31765
|
};
|
|
@@ -37263,7 +37273,7 @@ declare class WikiClient {
|
|
|
37263
37273
|
/**
|
|
37264
37274
|
* Export Wiki
|
|
37265
37275
|
*
|
|
37266
|
-
* Export
|
|
37276
|
+
* Export active General pages as an OKF v0.3 bundle. Imported paths, frontmatter, and supporting files are preserved. The glossary is returned separately as SKOS in JSON-LD. Requires documents:read.
|
|
37267
37277
|
*
|
|
37268
37278
|
* `GET /api/v1/wiki/export`
|
|
37269
37279
|
*/
|
|
@@ -37271,11 +37281,9 @@ declare class WikiClient {
|
|
|
37271
37281
|
/**
|
|
37272
37282
|
* Import Wiki
|
|
37273
37283
|
*
|
|
37274
|
-
* Create or update General pages from
|
|
37275
|
-
|
|
37276
|
-
Definitions from older exports are imported into the page body.
|
|
37284
|
+
* Create or update General pages from an OKF v0.3 bundle. Requires documents:write. Send the files array returned by the export. Use markdown for UTF-8 text files and base64 for binary assets. Bundle-relative links resolve to pages in the destination organization.
|
|
37277
37285
|
|
|
37278
|
-
|
|
37286
|
+
Concepts can update a General page by its local page ID, imported path, or matching title. Re-importing the same export is idempotent. Valid concepts and supporting files are saved in one transaction, with an outcome per concept. Standalone Markdown and earlier exports are also accepted.
|
|
37279
37287
|
*
|
|
37280
37288
|
* `POST /api/v1/wiki/import`
|
|
37281
37289
|
*/
|
|
@@ -37507,7 +37515,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
37507
37515
|
toleranceInSeconds?: number;
|
|
37508
37516
|
}): Promise<ConstructedWebhookEvent>;
|
|
37509
37517
|
|
|
37510
|
-
declare const SDK_VERSION = "0.
|
|
37518
|
+
declare const SDK_VERSION = "0.30.0";
|
|
37511
37519
|
|
|
37512
37520
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
37513
37521
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|
package/dist/index.d.ts
CHANGED
|
@@ -3938,7 +3938,7 @@ interface paths {
|
|
|
3938
3938
|
};
|
|
3939
3939
|
/**
|
|
3940
3940
|
* Export Wiki
|
|
3941
|
-
* @description Export
|
|
3941
|
+
* @description Export active General pages as an OKF v0.3 bundle. Imported paths, frontmatter, and supporting files are preserved. The glossary is returned separately as SKOS in JSON-LD. Requires documents:read.
|
|
3942
3942
|
*/
|
|
3943
3943
|
get: operations["get_v1_wiki_export"];
|
|
3944
3944
|
put?: never;
|
|
@@ -3960,11 +3960,9 @@ interface paths {
|
|
|
3960
3960
|
put?: never;
|
|
3961
3961
|
/**
|
|
3962
3962
|
* Import Wiki
|
|
3963
|
-
* @description Create or update General pages from
|
|
3963
|
+
* @description Create or update General pages from an OKF v0.3 bundle. Requires documents:write. Send the files array returned by the export. Use markdown for UTF-8 text files and base64 for binary assets. Bundle-relative links resolve to pages in the destination organization.
|
|
3964
3964
|
*
|
|
3965
|
-
*
|
|
3966
|
-
*
|
|
3967
|
-
* A file updates the page that already holds its title and otherwise creates one, so importing an export is idempotent. Each file is saved on its own and reported separately.
|
|
3965
|
+
* Concepts can update a General page by its local page ID, imported path, or matching title. Re-importing the same export is idempotent. Valid concepts and supporting files are saved in one transaction, with an outcome per concept. Standalone Markdown and earlier exports are also accepted.
|
|
3968
3966
|
*/
|
|
3969
3967
|
post: operations["post_v1_wiki_import"];
|
|
3970
3968
|
delete?: never;
|
|
@@ -31694,10 +31692,16 @@ interface operations {
|
|
|
31694
31692
|
[key: string]: string;
|
|
31695
31693
|
};
|
|
31696
31694
|
data: {
|
|
31697
|
-
files:
|
|
31698
|
-
|
|
31699
|
-
|
|
31700
|
-
|
|
31695
|
+
files: (
|
|
31696
|
+
| {
|
|
31697
|
+
path: string;
|
|
31698
|
+
markdown: string;
|
|
31699
|
+
}
|
|
31700
|
+
| {
|
|
31701
|
+
path: string;
|
|
31702
|
+
base64: "" | string;
|
|
31703
|
+
}
|
|
31704
|
+
)[];
|
|
31701
31705
|
skos: {
|
|
31702
31706
|
[key: string]: unknown;
|
|
31703
31707
|
};
|
|
@@ -31746,10 +31750,16 @@ interface operations {
|
|
|
31746
31750
|
content: {
|
|
31747
31751
|
"application/json": {
|
|
31748
31752
|
organizationId?: string;
|
|
31749
|
-
files:
|
|
31750
|
-
|
|
31751
|
-
|
|
31752
|
-
|
|
31753
|
+
files: (
|
|
31754
|
+
| {
|
|
31755
|
+
path?: string;
|
|
31756
|
+
markdown: string;
|
|
31757
|
+
}
|
|
31758
|
+
| {
|
|
31759
|
+
path: string;
|
|
31760
|
+
base64: "" | string;
|
|
31761
|
+
}
|
|
31762
|
+
)[];
|
|
31753
31763
|
};
|
|
31754
31764
|
};
|
|
31755
31765
|
};
|
|
@@ -37263,7 +37273,7 @@ declare class WikiClient {
|
|
|
37263
37273
|
/**
|
|
37264
37274
|
* Export Wiki
|
|
37265
37275
|
*
|
|
37266
|
-
* Export
|
|
37276
|
+
* Export active General pages as an OKF v0.3 bundle. Imported paths, frontmatter, and supporting files are preserved. The glossary is returned separately as SKOS in JSON-LD. Requires documents:read.
|
|
37267
37277
|
*
|
|
37268
37278
|
* `GET /api/v1/wiki/export`
|
|
37269
37279
|
*/
|
|
@@ -37271,11 +37281,9 @@ declare class WikiClient {
|
|
|
37271
37281
|
/**
|
|
37272
37282
|
* Import Wiki
|
|
37273
37283
|
*
|
|
37274
|
-
* Create or update General pages from
|
|
37275
|
-
|
|
37276
|
-
Definitions from older exports are imported into the page body.
|
|
37284
|
+
* Create or update General pages from an OKF v0.3 bundle. Requires documents:write. Send the files array returned by the export. Use markdown for UTF-8 text files and base64 for binary assets. Bundle-relative links resolve to pages in the destination organization.
|
|
37277
37285
|
|
|
37278
|
-
|
|
37286
|
+
Concepts can update a General page by its local page ID, imported path, or matching title. Re-importing the same export is idempotent. Valid concepts and supporting files are saved in one transaction, with an outcome per concept. Standalone Markdown and earlier exports are also accepted.
|
|
37279
37287
|
*
|
|
37280
37288
|
* `POST /api/v1/wiki/import`
|
|
37281
37289
|
*/
|
|
@@ -37507,7 +37515,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
37507
37515
|
toleranceInSeconds?: number;
|
|
37508
37516
|
}): Promise<ConstructedWebhookEvent>;
|
|
37509
37517
|
|
|
37510
|
-
declare const SDK_VERSION = "0.
|
|
37518
|
+
declare const SDK_VERSION = "0.30.0";
|
|
37511
37519
|
|
|
37512
37520
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
37513
37521
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ function normalizeClientOptions(options = {}) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// src/version.ts
|
|
36
|
-
var SDK_VERSION = "0.
|
|
36
|
+
var SDK_VERSION = "0.30.0";
|
|
37
37
|
var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
|
|
38
38
|
|
|
39
39
|
// src/environments.ts
|
|
@@ -5487,7 +5487,7 @@ var WikiClient = class {
|
|
|
5487
5487
|
/**
|
|
5488
5488
|
* Export Wiki
|
|
5489
5489
|
*
|
|
5490
|
-
* Export
|
|
5490
|
+
* Export active General pages as an OKF v0.3 bundle. Imported paths, frontmatter, and supporting files are preserved. The glossary is returned separately as SKOS in JSON-LD. Requires documents:read.
|
|
5491
5491
|
*
|
|
5492
5492
|
* `GET /api/v1/wiki/export`
|
|
5493
5493
|
*/
|
|
@@ -5504,11 +5504,9 @@ var WikiClient = class {
|
|
|
5504
5504
|
/**
|
|
5505
5505
|
* Import Wiki
|
|
5506
5506
|
*
|
|
5507
|
-
* Create or update General pages from
|
|
5507
|
+
* Create or update General pages from an OKF v0.3 bundle. Requires documents:write. Send the files array returned by the export. Use markdown for UTF-8 text files and base64 for binary assets. Bundle-relative links resolve to pages in the destination organization.
|
|
5508
5508
|
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
A file updates the page that already holds its title and otherwise creates one, so importing an export is idempotent. Each file is saved on its own and reported separately.
|
|
5509
|
+
Concepts can update a General page by its local page ID, imported path, or matching title. Re-importing the same export is idempotent. Valid concepts and supporting files are saved in one transaction, with an outcome per concept. Standalone Markdown and earlier exports are also accepted.
|
|
5512
5510
|
*
|
|
5513
5511
|
* `POST /api/v1/wiki/import`
|
|
5514
5512
|
*/
|