@coveo/push-api-client 2.4.18 → 2.4.28
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/docs/assets/highlight.css +49 -0
- package/dist/docs/assets/main.js +3 -3
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/assets/style.css +6 -82
- package/dist/docs/classes/AnySecurityIdentityBuilder.html +15 -11
- package/dist/docs/classes/CatalogSource.html +67 -55
- package/dist/docs/classes/DocumentBuilder.html +139 -112
- package/dist/docs/classes/FieldAnalyser.html +59 -50
- package/dist/docs/classes/GroupSecurityIdentityBuilder.html +11 -7
- package/dist/docs/classes/PushSource.html +96 -76
- package/dist/docs/classes/UserSecurityIdentityBuilder.html +11 -7
- package/dist/docs/classes/VirtualGroupSecurityIdentityBuilder.html +11 -7
- package/dist/docs/classes/errors.FieldTypeInconsistencyError.html +17 -14
- package/dist/docs/classes/errors.InvalidDocument.html +17 -14
- package/dist/docs/classes/errors.InvalidPermanentId.html +17 -14
- package/dist/docs/classes/errors.NotAFileError.html +17 -14
- package/dist/docs/classes/errors.NotAJsonFileError.html +17 -14
- package/dist/docs/classes/errors.PrivilegeError.html +18 -15
- package/dist/docs/classes/errors.UnsupportedAttribute.html +17 -14
- package/dist/docs/classes/errors.UnsupportedFieldError.html +27 -23
- package/dist/docs/enums/PlatformEnvironment.html +7 -5
- package/dist/docs/enums/Region.html +3 -1
- package/dist/docs/enums/SourceVisibility.html +3 -1
- package/dist/docs/functions/parseAndGetDocumentBuilderFromJSONDocument.html +4 -3
- package/dist/docs/index.html +49 -2
- package/dist/docs/interfaces/BatchUpdateDocuments.html +5 -3
- package/dist/docs/interfaces/Document.html +38 -36
- package/dist/docs/interfaces/SecurityIdentity.html +8 -6
- package/dist/docs/interfaces/SecurityIdentityBuilder.html +7 -4
- package/dist/docs/interfaces/UploadBatchCallbackData.html +8 -6
- package/dist/docs/modules/errors.html +3 -1
- package/dist/docs/types/BatchUpdateDocumentsFromFiles.html +1 -1
- package/dist/docs/types/CompressionType.html +1 -1
- package/dist/docs/types/FailedUploadCallback.html +2 -3
- package/dist/docs/types/Metadata.html +1 -1
- package/dist/docs/types/MetadataValue.html +1 -1
- package/dist/docs/types/PlatformUrlOptions.html +1 -1
- package/dist/docs/types/SecurityIdentityType.html +1 -1
- package/dist/docs/types/SuccessfulUploadCallback.html +2 -3
- package/dist/docs/types/Transformer.html +2 -3
- package/dist/docs/variables/BuiltInTransformers.html +1 -1
- package/dist/docs/variables/Source.html +1 -1
- package/dist/source/catalog.stream.spec.js +13 -0
- package/dist/source/catalog.stream.spec.js.map +1 -1
- package/dist/source/documentUploader.js +3 -2
- package/dist/source/documentUploader.js.map +1 -1
- package/package.json +13 -13
@@ -19,7 +19,9 @@
|
|
19
19
|
<ul class="tsd-hierarchy">
|
20
20
|
<li><span class="tsd-signature-type">PushApiClientBaseError</span>
|
21
21
|
<ul class="tsd-hierarchy">
|
22
|
-
<li><span class="target">UnsupportedFieldError</span></li></ul></li></ul></section>
|
22
|
+
<li><span class="target">UnsupportedFieldError</span></li></ul></li></ul></section><aside class="tsd-sources">
|
23
|
+
<ul>
|
24
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/errors/fieldErrors.ts#L40">src/errors/fieldErrors.ts:40</a></li></ul></aside>
|
23
25
|
<section class="tsd-panel-group tsd-index-group">
|
24
26
|
<section class="tsd-panel tsd-index-panel">
|
25
27
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
@@ -33,15 +35,15 @@
|
|
33
35
|
<h3 class="tsd-index-heading">Properties</h3>
|
34
36
|
<div class="tsd-index-list"><a href="errors.UnsupportedFieldError.html#message" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-1024-path"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)" id="icon-1024-text"></path></svg><span>message</span></a>
|
35
37
|
<a href="errors.UnsupportedFieldError.html#name" class="tsd-index-link tsd-kind-property tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>name</span></a>
|
36
|
-
<a href="errors.UnsupportedFieldError.html#stack" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>stack
|
38
|
+
<a href="errors.UnsupportedFieldError.html#stack" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>stack?</span></a>
|
37
39
|
<a href="errors.UnsupportedFieldError.html#unsupportedFields" class="tsd-index-link tsd-kind-property tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>unsupported<wbr/>Fields</span></a>
|
38
40
|
<a href="errors.UnsupportedFieldError.html#emptyFieldNameReplacer" class="tsd-index-link tsd-kind-property tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>empty<wbr/>Field<wbr/>Name<wbr/>Replacer</span></a>
|
39
|
-
<a href="errors.UnsupportedFieldError.html#prepareStackTrace" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>prepare<wbr/>Stack<wbr/>Trace
|
41
|
+
<a href="errors.UnsupportedFieldError.html#prepareStackTrace" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>prepare<wbr/>Stack<wbr/>Trace?</span></a>
|
40
42
|
<a href="errors.UnsupportedFieldError.html#stackTraceLimit" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>stack<wbr/>Trace<wbr/>Limit</span></a>
|
41
43
|
</div></section>
|
42
44
|
<section class="tsd-index-section">
|
43
45
|
<h3 class="tsd-index-heading">Accessors</h3>
|
44
|
-
<div class="tsd-index-list"><a href="errors.UnsupportedFieldError.html#formattedFieldList" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-262144-path"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)" id="icon-262144-text"></path></svg><span>formatted<wbr/>Field<wbr/>List</span></a>
|
46
|
+
<div class="tsd-index-list"><a href="errors.UnsupportedFieldError.html#formattedFieldList" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-262144-path"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)" id="icon-262144-text"></path></svg><span>formatted<wbr/>Field<wbr/>List</span></a>
|
45
47
|
</div></section>
|
46
48
|
<section class="tsd-index-section">
|
47
49
|
<h3 class="tsd-index-heading">Methods</h3>
|
@@ -52,8 +54,7 @@
|
|
52
54
|
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a>
|
53
55
|
<h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
54
56
|
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
55
|
-
<li class="tsd-signature" id="constructor.new_UnsupportedFieldError">new <wbr/>Unsupported<wbr/>Field<wbr/>Error<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>unsupportedFields<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="errors.UnsupportedFieldError.html" class="tsd-signature-type" data-tsd-kind="Class">UnsupportedFieldError</a></li
|
56
|
-
<ul class="tsd-descriptions">
|
57
|
+
<li class="tsd-signature tsd-anchor-link" id="constructor.new_UnsupportedFieldError">new <wbr/>Unsupported<wbr/>Field<wbr/>Error<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>unsupportedFields<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="errors.UnsupportedFieldError.html" class="tsd-signature-type" data-tsd-kind="Class">UnsupportedFieldError</a><a href="#constructor.new_UnsupportedFieldError" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
57
58
|
<li class="tsd-description">
|
58
59
|
<div class="tsd-parameters">
|
59
60
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
@@ -61,7 +62,9 @@
|
|
61
62
|
<li>
|
62
63
|
<h5><code class="tsd-tag ts-flagRest">Rest</code> <span class="tsd-signature-symbol">...</span>unsupportedFields: <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span></h5></li></ul></div>
|
63
64
|
<h4 class="tsd-returns-title">Returns <a href="errors.UnsupportedFieldError.html" class="tsd-signature-type" data-tsd-kind="Class">UnsupportedFieldError</a></h4><aside class="tsd-sources">
|
64
|
-
<p>Overrides PushApiClientBaseError.constructor</p
|
65
|
+
<p>Overrides PushApiClientBaseError.constructor</p>
|
66
|
+
<ul>
|
67
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/errors/fieldErrors.ts#L44">src/errors/fieldErrors.ts:44</a></li></ul></aside></li></ul></section></section>
|
65
68
|
<section class="tsd-panel-group tsd-member-group">
|
66
69
|
<h2>Properties</h2>
|
67
70
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="message" class="tsd-anchor"></a>
|
@@ -75,7 +78,7 @@
|
|
75
78
|
<div class="tsd-signature">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = 'Unsupported field Error'</span></div><aside class="tsd-sources">
|
76
79
|
<p>Overrides PushApiClientBaseError.name</p>
|
77
80
|
<ul>
|
78
|
-
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/
|
81
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/errors/fieldErrors.ts#L41">src/errors/fieldErrors.ts:41</a></li></ul></aside></section>
|
79
82
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="stack" class="tsd-anchor"></a>
|
80
83
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>stack</span><a href="#stack" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
81
84
|
<div class="tsd-signature">stack<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
@@ -86,12 +89,12 @@
|
|
86
89
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code> <span>unsupported<wbr/>Fields</span><a href="#unsupportedFields" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
87
90
|
<div class="tsd-signature">unsupported<wbr/>Fields<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
|
88
91
|
<ul>
|
89
|
-
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/
|
92
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/errors/fieldErrors.ts#L43">src/errors/fieldErrors.ts:43</a></li></ul></aside></section>
|
90
93
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="emptyFieldNameReplacer" class="tsd-anchor"></a>
|
91
94
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>empty<wbr/>Field<wbr/>Name<wbr/>Replacer</span><a href="#emptyFieldNameReplacer" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
92
95
|
<div class="tsd-signature">empty<wbr/>Field<wbr/>Name<wbr/>Replacer<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = '<empty field name>'</span></div><aside class="tsd-sources">
|
93
96
|
<ul>
|
94
|
-
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/
|
97
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/errors/fieldErrors.ts#L42">src/errors/fieldErrors.ts:42</a></li></ul></aside></section>
|
95
98
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="prepareStackTrace" class="tsd-anchor"></a>
|
96
99
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagOptional">Optional</code> <span>prepare<wbr/>Stack<wbr/>Trace</span><a href="#prepareStackTrace" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
97
100
|
<div class="tsd-signature">prepare<wbr/>Stack<wbr/>Trace<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>err<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, stackTraces<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CallSite</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span></div>
|
@@ -100,8 +103,7 @@
|
|
100
103
|
<ul class="tsd-parameters">
|
101
104
|
<li class="tsd-parameter-signature">
|
102
105
|
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-class">
|
103
|
-
<li class="tsd-signature" id="__type.__type-1"><span class="tsd-signature-symbol">(</span>err<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, stackTraces<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CallSite</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li
|
104
|
-
<ul class="tsd-descriptions">
|
106
|
+
<li class="tsd-signature" id="__type.__type-1"><span class="tsd-signature-symbol">(</span>err<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, stackTraces<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CallSite</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
|
105
107
|
<li class="tsd-description">
|
106
108
|
<div class="tsd-comment tsd-typography"><p>Optional override for formatting stack traces</p>
|
107
109
|
|
@@ -126,20 +128,20 @@
|
|
126
128
|
<li>Defined in node_modules/@types/node/globals.d.ts:13</li></ul></aside></section></section>
|
127
129
|
<section class="tsd-panel-group tsd-member-group">
|
128
130
|
<h2>Accessors</h2>
|
129
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="formattedFieldList" class="tsd-anchor"></a>
|
131
|
+
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><a id="formattedFieldList" class="tsd-anchor"></a>
|
130
132
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>formatted<wbr/>Field<wbr/>List</span><a href="#formattedFieldList" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
131
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
132
|
-
<li class="tsd-signature" id="formattedFieldList.formattedFieldList-1"><span class="tsd-signature-symbol">get</span> formattedFieldList<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li
|
133
|
-
<ul class="tsd-descriptions">
|
133
|
+
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class tsd-is-private">
|
134
|
+
<li class="tsd-signature" id="formattedFieldList.formattedFieldList-1"><span class="tsd-signature-symbol">get</span> formattedFieldList<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
134
135
|
<li class="tsd-description">
|
135
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4
|
136
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
137
|
+
<ul>
|
138
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/errors/fieldErrors.ts#L54">src/errors/fieldErrors.ts:54</a></li></ul></aside></li></ul></section></section>
|
136
139
|
<section class="tsd-panel-group tsd-member-group">
|
137
140
|
<h2>Methods</h2>
|
138
141
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="captureStackTrace" class="tsd-anchor"></a>
|
139
142
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>capture<wbr/>Stack<wbr/>Trace</span><a href="#captureStackTrace" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
140
143
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
|
141
|
-
<li class="tsd-signature" id="captureStackTrace.captureStackTrace-1">capture<wbr/>Stack<wbr/>Trace<span class="tsd-signature-symbol">(</span>targetObject<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span>, constructorOpt<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li
|
142
|
-
<ul class="tsd-descriptions">
|
144
|
+
<li class="tsd-signature tsd-anchor-link" id="captureStackTrace.captureStackTrace-1">capture<wbr/>Stack<wbr/>Trace<span class="tsd-signature-symbol">(</span>targetObject<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span>, constructorOpt<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#captureStackTrace.captureStackTrace-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
143
145
|
<li class="tsd-description">
|
144
146
|
<div class="tsd-comment tsd-typography"><p>Create .stack property on a target object</p>
|
145
147
|
</div>
|
@@ -151,7 +153,9 @@
|
|
151
153
|
<li>
|
152
154
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> constructorOpt: <span class="tsd-signature-type">Function</span></h5></li></ul></div>
|
153
155
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
154
|
-
<p>Inherited from PushApiClientBaseError.captureStackTrace</p
|
156
|
+
<p>Inherited from PushApiClientBaseError.captureStackTrace</p>
|
157
|
+
<ul>
|
158
|
+
<li>Defined in node_modules/@types/node/globals.d.ts:4</li></ul></aside></li></ul></section></section></div>
|
155
159
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
156
160
|
<div class="tsd-navigation settings">
|
157
161
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
@@ -181,12 +185,12 @@
|
|
181
185
|
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="errors.UnsupportedFieldError.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
|
182
186
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="errors.UnsupportedFieldError.html#message" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>message</a></li>
|
183
187
|
<li class="tsd-kind-property tsd-parent-kind-class"><a href="errors.UnsupportedFieldError.html#name" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>name</a></li>
|
184
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="errors.UnsupportedFieldError.html#stack" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>stack
|
188
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="errors.UnsupportedFieldError.html#stack" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>stack?</a></li>
|
185
189
|
<li class="tsd-kind-property tsd-parent-kind-class"><a href="errors.UnsupportedFieldError.html#unsupportedFields" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>unsupported<wbr/>Fields</a></li>
|
186
190
|
<li class="tsd-kind-property tsd-parent-kind-class"><a href="errors.UnsupportedFieldError.html#emptyFieldNameReplacer" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>empty<wbr/>Field<wbr/>Name<wbr/>Replacer</a></li>
|
187
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="errors.UnsupportedFieldError.html#prepareStackTrace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>prepare<wbr/>Stack<wbr/>Trace
|
191
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="errors.UnsupportedFieldError.html#prepareStackTrace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>prepare<wbr/>Stack<wbr/>Trace?</a></li>
|
188
192
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="errors.UnsupportedFieldError.html#stackTraceLimit" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>stack<wbr/>Trace<wbr/>Limit</a></li>
|
189
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="errors.UnsupportedFieldError.html#formattedFieldList" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>formatted<wbr/>Field<wbr/>List</a></li>
|
193
|
+
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><a href="errors.UnsupportedFieldError.html#formattedFieldList" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>formatted<wbr/>Field<wbr/>List</a></li>
|
190
194
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="errors.UnsupportedFieldError.html#captureStackTrace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>capture<wbr/>Stack<wbr/>Trace</a></li></ul></li></ul></nav></div></div>
|
191
195
|
<div class="container tsd-generator">
|
192
196
|
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
@@ -12,7 +12,9 @@
|
|
12
12
|
<ul class="tsd-breadcrumb">
|
13
13
|
<li><a href="../modules.html">@coveo/push-api-client</a></li>
|
14
14
|
<li><a href="PlatformEnvironment.html">PlatformEnvironment</a></li></ul>
|
15
|
-
<h1>Enumeration PlatformEnvironment</h1></div>
|
15
|
+
<h1>Enumeration PlatformEnvironment</h1></div><aside class="tsd-sources">
|
16
|
+
<ul>
|
17
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/environment.ts#L4">src/environment.ts:4</a></li></ul></aside>
|
16
18
|
<section class="tsd-panel-group tsd-index-group">
|
17
19
|
<section class="tsd-panel tsd-index-panel">
|
18
20
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
@@ -31,22 +33,22 @@
|
|
31
33
|
<h3 class="tsd-anchor-link"><span>Dev</span><a href="#Dev" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
32
34
|
<div class="tsd-signature">Dev<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"dev"</span></div><aside class="tsd-sources">
|
33
35
|
<ul>
|
34
|
-
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/
|
36
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/environment.ts#L5">src/environment.ts:5</a></li></ul></aside></section>
|
35
37
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="Hipaa" class="tsd-anchor"></a>
|
36
38
|
<h3 class="tsd-anchor-link"><span>Hipaa</span><a href="#Hipaa" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
37
39
|
<div class="tsd-signature">Hipaa<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"hipaa"</span></div><aside class="tsd-sources">
|
38
40
|
<ul>
|
39
|
-
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/
|
41
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/environment.ts#L7">src/environment.ts:7</a></li></ul></aside></section>
|
40
42
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="Prod" class="tsd-anchor"></a>
|
41
43
|
<h3 class="tsd-anchor-link"><span>Prod</span><a href="#Prod" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
42
44
|
<div class="tsd-signature">Prod<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"prod"</span></div><aside class="tsd-sources">
|
43
45
|
<ul>
|
44
|
-
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/
|
46
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/environment.ts#L8">src/environment.ts:8</a></li></ul></aside></section>
|
45
47
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="Stg" class="tsd-anchor"></a>
|
46
48
|
<h3 class="tsd-anchor-link"><span>Stg</span><a href="#Stg" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
47
49
|
<div class="tsd-signature">Stg<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"stg"</span></div><aside class="tsd-sources">
|
48
50
|
<ul>
|
49
|
-
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/
|
51
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/environment.ts#L6">src/environment.ts:6</a></li></ul></aside></section></section></div>
|
50
52
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
51
53
|
<div class="tsd-navigation settings">
|
52
54
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
@@ -12,7 +12,9 @@
|
|
12
12
|
<ul class="tsd-breadcrumb">
|
13
13
|
<li><a href="../modules.html">@coveo/push-api-client</a></li>
|
14
14
|
<li><a href="Region.html">Region</a></li></ul>
|
15
|
-
<h1>Enumeration Region</h1></div>
|
15
|
+
<h1>Enumeration Region</h1></div><aside class="tsd-sources">
|
16
|
+
<ul>
|
17
|
+
<li>Defined in node_modules/@coveord/platform-client/dist/definitions/Endpoints.d.ts:1</li></ul></aside>
|
16
18
|
<section class="tsd-panel-group tsd-index-group">
|
17
19
|
<section class="tsd-panel tsd-index-panel">
|
18
20
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
@@ -12,7 +12,9 @@
|
|
12
12
|
<ul class="tsd-breadcrumb">
|
13
13
|
<li><a href="../modules.html">@coveo/push-api-client</a></li>
|
14
14
|
<li><a href="SourceVisibility.html">SourceVisibility</a></li></ul>
|
15
|
-
<h1>Enumeration SourceVisibility</h1></div>
|
15
|
+
<h1>Enumeration SourceVisibility</h1></div><aside class="tsd-sources">
|
16
|
+
<ul>
|
17
|
+
<li>Defined in node_modules/@coveord/platform-client/dist/definitions/resources/Enums.d.ts:144</li></ul></aside>
|
16
18
|
<section class="tsd-panel-group tsd-index-group">
|
17
19
|
<section class="tsd-panel tsd-index-panel">
|
18
20
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
@@ -15,8 +15,7 @@
|
|
15
15
|
<h1>Function parseAndGetDocumentBuilderFromJSONDocument</h1></div>
|
16
16
|
<section class="tsd-panel">
|
17
17
|
<ul class="tsd-signatures tsd-kind-function">
|
18
|
-
<li class="tsd-signature" id="parseAndGetDocumentBuilderFromJSONDocument">parse<wbr/>And<wbr/>Get<wbr/>Document<wbr/>Builder<wbr/>FromJSONDocument<span class="tsd-signature-symbol">(</span>documentPath<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PathLike</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">ParseDocumentOptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/DocumentBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">DocumentBuilder</a><span class="tsd-signature-symbol">[]</span></li
|
19
|
-
<ul class="tsd-descriptions">
|
18
|
+
<li class="tsd-signature tsd-anchor-link" id="parseAndGetDocumentBuilderFromJSONDocument">parse<wbr/>And<wbr/>Get<wbr/>Document<wbr/>Builder<wbr/>FromJSONDocument<span class="tsd-signature-symbol">(</span>documentPath<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PathLike</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">ParseDocumentOptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/DocumentBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">DocumentBuilder</a><span class="tsd-signature-symbol">[]</span><a href="#parseAndGetDocumentBuilderFromJSONDocument" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
|
20
19
|
<li class="tsd-description">
|
21
20
|
<div class="tsd-parameters">
|
22
21
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
@@ -25,7 +24,9 @@
|
|
25
24
|
<h5>documentPath: <span class="tsd-signature-type">PathLike</span></h5></li>
|
26
25
|
<li>
|
27
26
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <span class="tsd-signature-type">ParseDocumentOptions</span></h5></li></ul></div>
|
28
|
-
<h4 class="tsd-returns-title">Returns <a href="../classes/DocumentBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">DocumentBuilder</a><span class="tsd-signature-symbol">[]</span></h4
|
27
|
+
<h4 class="tsd-returns-title">Returns <a href="../classes/DocumentBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">DocumentBuilder</a><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
28
|
+
<ul>
|
29
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/validation/parseFile.ts#L27">src/validation/parseFile.ts:27</a></li></ul></aside></li></ul></section></div>
|
29
30
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
30
31
|
<div class="tsd-navigation settings">
|
31
32
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
package/dist/docs/index.html
CHANGED
@@ -11,9 +11,56 @@
|
|
11
11
|
<div class="tsd-page-title">
|
12
12
|
<h2>@coveo/push-api-client</h2></div>
|
13
13
|
<div class="tsd-panel tsd-typography">
|
14
|
-
<a href="#" id="" style="color: inherit; text-decoration: none;">
|
15
|
-
<h1
|
14
|
+
<a href="#coveopush-api-clientjs" id="coveopush-api-clientjs" style="color: inherit; text-decoration: none;">
|
15
|
+
<h1>@coveo/push-api-client.js</h1>
|
16
16
|
</a>
|
17
|
+
<p>Coveo Push API client</p>
|
18
|
+
|
19
|
+
<a href="#installation" id="installation" style="color: inherit; text-decoration: none;">
|
20
|
+
<h2>Installation</h2>
|
21
|
+
</a>
|
22
|
+
<p><code>npm i @coveo/push-api-client</code></p>
|
23
|
+
|
24
|
+
<a href="#features" id="features" style="color: inherit; text-decoration: none;">
|
25
|
+
<h2>Features</h2>
|
26
|
+
</a>
|
27
|
+
<ul>
|
28
|
+
<li>Upload data to both Push and Catalog sources</li>
|
29
|
+
<li>Pre-push document validation</li>
|
30
|
+
<li>Automatic custom field creation</li>
|
31
|
+
<li>Full catalog upload and incremental document update</li>
|
32
|
+
<li>Optimized for large payload uploads</li>
|
33
|
+
</ul>
|
34
|
+
|
35
|
+
<a href="#usage" id="usage" style="color: inherit; text-decoration: none;">
|
36
|
+
<h2>Usage</h2>
|
37
|
+
</a>
|
38
|
+
<pre><code class="language-js"><span class="hl-0">import</span><span class="hl-1"> {</span><span class="hl-2">PushSource</span><span class="hl-1">, </span><span class="hl-2">DocumentBuilder</span><span class="hl-1">} </span><span class="hl-0">from</span><span class="hl-1"> </span><span class="hl-3">'@coveo/push-api-client'</span><span class="hl-1">;</span><br/><br/><span class="hl-4">async</span><span class="hl-1"> </span><span class="hl-4">function</span><span class="hl-1"> </span><span class="hl-5">main</span><span class="hl-1">() {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">source</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-5">PushSource</span><span class="hl-1">(</span><span class="hl-3">'my_api_key'</span><span class="hl-1">, </span><span class="hl-3">'my_coveo_organization_id'</span><span class="hl-1">);</span><br/><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">myDocument</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-5">DocumentBuilder</span><span class="hl-1">(</span><br/><span class="hl-1"> </span><span class="hl-3">'https://my.document.uri'</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">'My document title'</span><br/><span class="hl-1"> ).</span><span class="hl-5">withData</span><span class="hl-1">(</span><span class="hl-3">'these words will be searchable'</span><span class="hl-1">);</span><br/><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">source</span><span class="hl-1">.</span><span class="hl-5">addOrUpdateDocument</span><span class="hl-1">(</span><span class="hl-3">'my_source_id'</span><span class="hl-1">, </span><span class="hl-2">myDocument</span><span class="hl-1">);</span><br/><span class="hl-1">}</span><br/><br/><span class="hl-5">main</span><span class="hl-1">();</span>
|
39
|
+
</code></pre>
|
40
|
+
<p>You can also upload your data into a catalog source</p>
|
41
|
+
<pre><code class="language-js"><span class="hl-4">async</span><span class="hl-1"> </span><span class="hl-4">function</span><span class="hl-1"> </span><span class="hl-5">main</span><span class="hl-1">() {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">source</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-5">CatalogSource</span><span class="hl-1">(</span><span class="hl-3">'my_api_key'</span><span class="hl-1">, </span><span class="hl-3">'my_coveo_organization_id'</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">source</span><br/><span class="hl-1"> .</span><span class="hl-5">batchStreamDocumentsFromFiles</span><span class="hl-1">(</span><span class="hl-3">'my_source_id'</span><span class="hl-1">, [</span><span class="hl-3">'path/to/file_or_folder'</span><span class="hl-1">])</span><br/><span class="hl-1"> .</span><span class="hl-5">batch</span><span class="hl-1">();</span><br/><span class="hl-1">}</span><br/><br/><span class="hl-5">main</span><span class="hl-1">();</span><br/>
|
42
|
+
</code></pre>
|
43
|
+
<p>See more examples in the <code>./samples</code> folder.</p>
|
44
|
+
|
45
|
+
<a href="#local-development" id="local-development" style="color: inherit; text-decoration: none;">
|
46
|
+
<h2>Local development</h2>
|
47
|
+
</a>
|
48
|
+
<ul>
|
49
|
+
<li><code>npm i</code></li>
|
50
|
+
<li>Copy <code>env.sample</code> to <code>.env</code>, and replace the variables with proper values.</li>
|
51
|
+
<li><code>npm run dev</code> to compile and run <code>./src/localtest.ts</code>.</li>
|
52
|
+
<li><code>npm run test</code> for unit tests.</li>
|
53
|
+
</ul>
|
54
|
+
|
55
|
+
<a href="#commit" id="commit" style="color: inherit; text-decoration: none;">
|
56
|
+
<h2>Commit</h2>
|
57
|
+
</a>
|
58
|
+
<p>Use <code>npm run commit</code> to get a properly formatted commit message which will help control the versioning and CHANGELOG generation.</p>
|
59
|
+
|
60
|
+
<a href="#release" id="release" style="color: inherit; text-decoration: none;">
|
61
|
+
<h2>Release</h2>
|
62
|
+
</a>
|
63
|
+
<p>Run Github action named <code>release</code>, which will bump version, tag and publish to npm.</p>
|
17
64
|
</div></div>
|
18
65
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
19
66
|
<div class="tsd-navigation settings">
|
@@ -16,7 +16,9 @@
|
|
16
16
|
<section class="tsd-panel tsd-hierarchy">
|
17
17
|
<h4>Hierarchy</h4>
|
18
18
|
<ul class="tsd-hierarchy">
|
19
|
-
<li><span class="target">BatchUpdateDocuments</span></li></ul></section>
|
19
|
+
<li><span class="target">BatchUpdateDocuments</span></li></ul></section><aside class="tsd-sources">
|
20
|
+
<ul>
|
21
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/interfaces.ts#L9">src/interfaces.ts:9</a></li></ul></aside>
|
20
22
|
<section class="tsd-panel-group tsd-index-group">
|
21
23
|
<section class="tsd-panel tsd-index-panel">
|
22
24
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
@@ -33,12 +35,12 @@
|
|
33
35
|
<h3 class="tsd-anchor-link"><span>add<wbr/>Or<wbr/>Update</span><a href="#addOrUpdate" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
34
36
|
<div class="tsd-signature">add<wbr/>Or<wbr/>Update<span class="tsd-signature-symbol">:</span> <a href="../classes/DocumentBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">DocumentBuilder</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
|
35
37
|
<ul>
|
36
|
-
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/
|
38
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/interfaces.ts#L10">src/interfaces.ts:10</a></li></ul></aside></section>
|
37
39
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="delete" class="tsd-anchor"></a>
|
38
40
|
<h3 class="tsd-anchor-link"><span>delete</span><a href="#delete" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
39
41
|
<div class="tsd-signature">delete<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>deleteChildren<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>documentId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
|
40
42
|
<ul>
|
41
|
-
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/
|
43
|
+
<li>Defined in <a href="https://github.com/coveo/push-api-client.js/blob/6f5535c/src/interfaces.ts#L11">src/interfaces.ts:11</a></li></ul></aside></section></section></div>
|
42
44
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
43
45
|
<div class="tsd-navigation settings">
|
44
46
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|