@spiffcommerce/core 26.0.0 → 26.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +91 -55
- package/dist/index.d.ts +41 -5
- package/dist/index.js +517 -225
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5044 -4522
- package/dist/index.mjs.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,202 +5,238 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
#### Types of changes
|
|
9
|
+
|
|
10
|
+
- `Added` for new features.
|
|
11
|
+
- `Changed` for changes in existing functionality.
|
|
12
|
+
- `Deprecated` for soon-to-be removed features.
|
|
13
|
+
- `Removed` for now removed features.
|
|
14
|
+
- `Fixed` for any bug fixes.
|
|
15
|
+
- `Security` in case of vulnerabilities.
|
|
16
|
+
|
|
17
|
+
## [26.1.1] - 30-10-2024
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Merged some GraphQL calls to reduce the number of requests made when loading a bundle.
|
|
22
|
+
|
|
23
|
+
## [26.1.0] - 30-10-2024
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- Several internal functions have been changed, been merged or removed. This should not affect any public API.
|
|
28
|
+
- `rehydrateSerializedLayout` is no longer exported from the package. No functionality is intended to take its place. The function was always intended for internal use only.
|
|
29
|
+
|
|
30
|
+
## [26.0.0] - 30-10-2024
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- `getWorkflowExperience` has removed 3 deprecated parameters in favor of the options object. The options object is no longer optional.
|
|
35
|
+
- `configureUrls` has been removed in favor of the `configure` function. Please use `configure` moving forwards.
|
|
36
|
+
- The client constructor should know be called with an application in most use cases. We'll continue locking down functionality to require this in the future.
|
|
37
|
+
|
|
8
38
|
## [22.0.0] - 10-07-2024
|
|
9
39
|
|
|
10
40
|
### Changed
|
|
11
41
|
|
|
12
|
-
-
|
|
42
|
+
- `matchHexToPms` now returns a list of objects of `{ pms: string; hex: string; }` rather than strings.
|
|
13
43
|
|
|
14
44
|
### Added
|
|
15
45
|
|
|
16
|
-
-
|
|
46
|
+
- `findPmsColors(input: string, limit?: number): PmsSearchResult[]`: A function to find PMS colors by name using fuzzy search.
|
|
17
47
|
|
|
18
48
|
## [21.8.1] - 27-03-2024
|
|
19
49
|
|
|
20
50
|
### Fixed
|
|
21
51
|
|
|
22
|
-
-
|
|
52
|
+
- `WorkflowExperience.getTotalPriceSubunits` no longer always returns the discounted price.
|
|
23
53
|
|
|
24
54
|
## [21.8.0] - 26-03-2024
|
|
25
55
|
|
|
26
56
|
### Added
|
|
27
57
|
|
|
28
|
-
-
|
|
58
|
+
- `Bundle.removeStakeholder(email: string): Promise<void>`: Removes a single stakeholder from the Bundle, via email address.
|
|
29
59
|
|
|
30
60
|
## [21.7.1] - 25-03-2024
|
|
31
61
|
|
|
32
62
|
### Fixed
|
|
33
63
|
|
|
34
|
-
-
|
|
64
|
+
- `Bundle.getAllStakeholders()` now returns correct results on subsequent calls.
|
|
35
65
|
|
|
36
66
|
## [21.7.0] - 25-03-2024
|
|
37
67
|
|
|
38
68
|
### Added
|
|
39
69
|
|
|
40
|
-
-
|
|
70
|
+
- `CollectionProduct.getAllWorkflows(): ProductWorkflow[]`: Returns all workflows associated with this product.
|
|
41
71
|
|
|
42
72
|
## [21.6.0] - 22-03-2024
|
|
43
73
|
|
|
44
74
|
### Added
|
|
45
75
|
|
|
46
|
-
-
|
|
76
|
+
- `WorkflowExperienceEventType.PriceBreakChanged`: The relevant event fires whenever the price break to be used in a WorkflowExperience changes. This even will fire when the quantity changes, and will also fire when in a Bundle when other WorkflowExperiences using the same Product have quantity changes (or are added & removed from the Bundle).
|
|
47
77
|
|
|
48
78
|
## [21.5.0] - 22-03-2024
|
|
49
79
|
|
|
50
80
|
### Changed
|
|
51
81
|
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
|
|
82
|
+
- `StepHandle`: The override global property state setting now has a different value for each Global Property Aspect type. The get/set functions have been renamed and have an extra parameter to determine the Aspect Type.
|
|
83
|
+
- `getOverrideGlobalPreviewConfiguration` -> `getOverrideGlobalPropertyConfiguration(type: AspectType): boolean`.
|
|
84
|
+
- `setOverrideGlobalPreviewConfiguration` -> `setOverrideGlobalPropertyConfiguration(type: AspectType, value: boolean): void`
|
|
56
85
|
|
|
57
86
|
## [21.4.1] - 21-03-2024
|
|
58
87
|
|
|
59
88
|
### Changed
|
|
60
89
|
|
|
61
|
-
-
|
|
90
|
+
- `readTransactionsQuery` now fetches `printFileUrl1` to `printFileUrl5` for each transaction.
|
|
62
91
|
|
|
63
92
|
## [21.4.0] - 20-03-2024
|
|
64
93
|
|
|
65
94
|
### Added
|
|
66
95
|
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
96
|
+
- `StepHandle`:
|
|
97
|
+
- `getOverrideGlobalPreviewConfiguration(): boolean`: Returns a boolean that indicates whether this step should override (ignore) Global Property state.
|
|
98
|
+
- `setOverrideGlobalPreviewConfiguration(value: boolean): void`: Modifies whether this step should override (ignore) Global Property state.
|
|
99
|
+
- `getGlobalPropertyAspects(configurationId: string): string[]`: Returns all Aspect names in the supplied Global Property Configuration that this step is configured to use.
|
|
100
|
+
- `Bundle.getGlobalPropertyConfiguration(): GlobalPropertyConfiguration | undefined`: Returns the Global Property Configuration object associated with the Bundle, if it exists.
|
|
72
101
|
|
|
73
102
|
## [21.3.1] - 20-03-2024
|
|
74
103
|
|
|
75
104
|
### Fixed
|
|
76
105
|
|
|
77
|
-
-
|
|
106
|
+
- When a `Bundle` is loaded by ID, the `WorkflowExperience` objects it loads will not correctly be linked internally. This resolves issues regarding price breaks not calculating correctly on bundle reload when multiple transactions share a product.
|
|
78
107
|
|
|
79
108
|
## [21.3.0] - 20-03-2024
|
|
80
109
|
|
|
81
110
|
### Added
|
|
82
111
|
|
|
83
|
-
-
|
|
112
|
+
- `WorkflowExperience.priceBreakToBeApplied()` returns the percentage that will be used in `WorkflowExperience.getTotalPriceSubunits()` and related methods.
|
|
84
113
|
|
|
85
114
|
### Changed
|
|
86
115
|
|
|
87
|
-
-
|
|
116
|
+
- `WorkflowExperience.getTotalPriceSubunits()` and related methods now consider price breaks in their calculations, but also now have a `disablePriceBreaks` argument.
|
|
88
117
|
|
|
89
118
|
## [21.2.1] - 15-03-2024
|
|
90
119
|
|
|
91
120
|
### Fixed
|
|
92
121
|
|
|
93
|
-
-
|
|
122
|
+
- Fixed Global Property Handles not updating values when WorkflowExperiences in the Bundle share the same Workflow.
|
|
94
123
|
|
|
95
124
|
## [21.2.0] - 15-03-2024
|
|
96
125
|
|
|
97
126
|
### Added
|
|
98
127
|
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
128
|
+
- `FileUploadGlobalPropertyHandle`:
|
|
129
|
+
- `hasImage(): boolean`: Returns a boolean value indicating if the associated state has an image.
|
|
130
|
+
- `getImage(): Promise<Asset | undefined>`: Retrieves the current image from the server.
|
|
102
131
|
|
|
103
132
|
## [21.1.1] - 15-03-2024
|
|
104
133
|
|
|
105
134
|
### Fixed
|
|
106
135
|
|
|
107
|
-
-
|
|
136
|
+
- Exported missing `AspectType` for global property handles.
|
|
108
137
|
|
|
109
138
|
## [21.1.0] - 14-03-2024
|
|
110
139
|
|
|
111
140
|
### Added
|
|
112
141
|
|
|
113
|
-
-
|
|
142
|
+
- `Bundle.hasGlobalProperties(): boolean`: Returns true when the bundle is linked to a Global Property Configuration.
|
|
114
143
|
|
|
115
144
|
## [21.0.1] - 13-03-2024
|
|
116
145
|
|
|
117
146
|
### Fixed
|
|
118
147
|
|
|
119
|
-
-
|
|
148
|
+
- Package now supplies this `CHANGELOG.md` in published releases.
|
|
120
149
|
|
|
121
150
|
## [21.0.0] - 13-03-2024
|
|
122
151
|
|
|
123
152
|
### Added
|
|
124
153
|
|
|
125
|
-
-
|
|
154
|
+
- `DesignCreationMessage` now has `quantity: number | undefined`.
|
|
126
155
|
|
|
127
156
|
### Changed
|
|
128
157
|
|
|
129
|
-
-
|
|
158
|
+
- `Bundle.finish()` no longer returns an array of `DesignCreationMessage` objects, but instead returns a `BundleDesignCreationMessage` object which wraps the array of `DesignCreationMessage` entries.
|
|
130
159
|
|
|
131
160
|
## [20.5.1] - 12-03-2024
|
|
132
161
|
|
|
133
162
|
### Fixed
|
|
134
163
|
|
|
135
|
-
-
|
|
164
|
+
- `WorkflowExperience.getSelectionPriceSubunits()` (and consequently `getTotalPriceSubunits()`) can no longer return `NaN`.
|
|
136
165
|
|
|
137
166
|
## [20.5.0] - 12-03-2024
|
|
138
167
|
|
|
139
168
|
### Added
|
|
140
169
|
|
|
141
|
-
-
|
|
170
|
+
- `WorkflowManager.injectIntoPreviewService()` now has a second argument `refocusCamera`, a boolean which allows you to disable the automatic refocusing of the camera when the model is loaded. This requires `@spiffcommerce/preview@^5.7.0`.
|
|
142
171
|
|
|
143
172
|
## [20.4.5] - 08-03-2024
|
|
144
173
|
|
|
145
174
|
### Added
|
|
146
175
|
|
|
147
|
-
-
|
|
176
|
+
- `RenderableScene` objects will now contain a `workflowScene: WorkflowScene` field. This is only provided for backwards compatibility and is considered deprecated functionality.
|
|
148
177
|
|
|
149
178
|
## [20.4.4] - 08-03-2024
|
|
150
179
|
|
|
151
180
|
### Fixed
|
|
152
181
|
|
|
153
|
-
-
|
|
182
|
+
- Updating quantity via `WorkflowExperience.setQuantity()` will now correctly update on the server.
|
|
154
183
|
|
|
155
184
|
## [20.4.3] - 08-03-2024
|
|
156
185
|
|
|
157
186
|
### Changed
|
|
158
187
|
|
|
159
|
-
-
|
|
188
|
+
- `WorkflowExperience.setQuantity()` now returns a promise that resolves once the quantity has been updated on the server.
|
|
160
189
|
|
|
161
190
|
## [20.4.0] - 08-03-2024
|
|
162
191
|
|
|
163
192
|
### Added
|
|
164
193
|
|
|
165
|
-
-
|
|
166
|
-
-
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
170
|
-
-
|
|
171
|
-
-
|
|
194
|
+
- `Transaction` entities now have `quantity: number | undefined`.
|
|
195
|
+
- New functions on `WorkflowExperience` for managing quantity:
|
|
196
|
+
- `getQuantity()`: The amount that was, or will be, ordered of the underlying `Transaction`. This will default to `1` if the value is undefined. If you want to read the raw value, use `getWorkflowManager().getTransaction().quantity`.
|
|
197
|
+
- `setQuantity(<number>)`: Updates the quantity value on the underlying `Transaction` entity. Must be >= 1.
|
|
198
|
+
- New events functionality on `WorkflowExperience`. Currently the only event is `QuantityChanged`.
|
|
199
|
+
- `addEventListener(<type>, <callback>)`: Registers a callback function to be called when the specified event is raised. The associated `WorkflowExperience` is passed as a parameter to the callback function.
|
|
200
|
+
- `removeEventListener(<type>, <callback>)`: Removes a previously registered callback.
|
|
172
201
|
|
|
173
202
|
## [20.3.0] - 07-03-2024
|
|
174
203
|
|
|
175
204
|
### Added
|
|
176
205
|
|
|
177
|
-
-
|
|
206
|
+
- `CollectionProduct.getCurrentIntegration()`: returns the `IntegrationProductResource` associated with the product that is linked to the current Integration (resolved via the application key).
|
|
178
207
|
|
|
179
208
|
## [20.2.2] - 05-03-2024
|
|
180
209
|
|
|
181
210
|
### Changed
|
|
182
211
|
|
|
183
|
-
-
|
|
212
|
+
- `WorkflowExperience.getStepById(<string>)` now internally caches the `StepHandle` objects that it creates. This resolves an issue with functional rendering systems that re-render when the object reference changes, where they would re-renderer whenever this function was called even if the object was identical.
|
|
184
213
|
|
|
185
214
|
## [20.2.1] - 29-02-2024
|
|
186
215
|
|
|
187
216
|
### Changed
|
|
188
217
|
|
|
189
|
-
-
|
|
218
|
+
- The union type `GetWorkflowOptions` has some of its entries wrapped in another union. The types that will create a brand new `Transaction` are now nested under `GetNewWorkflowOptions`:
|
|
219
|
+
|
|
190
220
|
```ts
|
|
191
221
|
// Before
|
|
192
|
-
export type GetWorkflowOptions =
|
|
222
|
+
export type GetWorkflowOptions =
|
|
223
|
+
| GetWorkflowFromTransactionOptions
|
|
224
|
+
| GetWorkflowFromIntegrationProductOptions
|
|
225
|
+
| GetWorkflowFromExternalProductOptions;
|
|
193
226
|
|
|
194
227
|
// After
|
|
195
|
-
export type GetNewWorkflowOptions =
|
|
228
|
+
export type GetNewWorkflowOptions =
|
|
229
|
+
| GetWorkflowFromIntegrationProductOptions
|
|
230
|
+
| GetWorkflowFromExternalProductOptions;
|
|
196
231
|
|
|
197
232
|
export type GetWorkflowOptions = GetWorkflowFromTransactionOptions | GetNewWorkflowOptions;
|
|
198
233
|
```
|
|
234
|
+
|
|
199
235
|
## [20.2.0] - 29-02-2024
|
|
200
236
|
|
|
201
237
|
### Added
|
|
202
238
|
|
|
203
|
-
-
|
|
239
|
+
- `SpiffCommerceClient.getIntegrationProduct(<options>)`: Fetches an `IntegrationProduct` object. Essentially a wrapper for the functions `getIntegrationProductById` and `getIntegrationProductFromExternalIds`. The options object type is as follows:
|
|
204
240
|
```ts
|
|
205
241
|
{
|
|
206
242
|
type: "integration";
|
|
@@ -216,27 +252,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
216
252
|
|
|
217
253
|
### Added
|
|
218
254
|
|
|
219
|
-
-
|
|
255
|
+
- `IntegrationProduct.getAllWorkflows()`: Returns an array of `ProductWorkflow`, ordered by their internal `index` value (matches the order seen on the SpiffCommerce Hub).
|
|
220
256
|
|
|
221
257
|
## [20.0.1] - 23-02-2024
|
|
222
258
|
|
|
223
259
|
### Changed
|
|
224
260
|
|
|
225
|
-
-
|
|
261
|
+
- `StepHandle.executeAnimations()` now logs a warning to the console when the associated `WorkflowManager` is not associated with a `ThreeDPreviewService`.
|
|
226
262
|
|
|
227
263
|
## [20.0.0] - 15-02-2024
|
|
228
264
|
|
|
229
265
|
### Added
|
|
230
266
|
|
|
231
|
-
-
|
|
232
|
-
-
|
|
267
|
+
- Additional configuration options for GraphQL on bundles.
|
|
268
|
+
- A separate fetchProducts function on the ProductCollection interface.
|
|
233
269
|
|
|
234
270
|
### Changed
|
|
235
271
|
|
|
236
|
-
-
|
|
272
|
+
- Removed async on getProducts call.
|
|
237
273
|
|
|
238
274
|
### Removed
|
|
239
275
|
|
|
240
|
-
-
|
|
241
|
-
-
|
|
242
|
-
-
|
|
276
|
+
- Unused normalize.css file.
|
|
277
|
+
- Identical links assigned in each translation file.
|
|
278
|
+
- Duplicate index file for the english version.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'preact/compat';
|
|
2
|
+
import * as _apollo_client_core from '@apollo/client/core';
|
|
2
3
|
import { MutationOptions, FetchResult, ApolloClient } from '@apollo/client/core';
|
|
3
4
|
import { RenderableContextService, RenderableContext, ThreeDPreviewService, ModelContainer } from '@spiffcommerce/preview';
|
|
4
5
|
import * as lodash from 'lodash';
|
|
@@ -312,7 +313,6 @@ interface SVGLayoutProps {
|
|
|
312
313
|
*/
|
|
313
314
|
declare abstract class CanvasCommand {
|
|
314
315
|
abstract apply(state: LayoutsState): LayoutsState;
|
|
315
|
-
varying?: boolean;
|
|
316
316
|
protected oldState?: LayoutsState;
|
|
317
317
|
undo(): LayoutsState;
|
|
318
318
|
overrideOldState(state: LayoutsState): void;
|
|
@@ -556,7 +556,6 @@ declare class SendBackwardsCommand extends CanvasCommand {
|
|
|
556
556
|
|
|
557
557
|
interface CommandState {
|
|
558
558
|
transaction: LayoutsState;
|
|
559
|
-
variation?: Partial<LayoutsState>;
|
|
560
559
|
}
|
|
561
560
|
interface LayoutComponentConfiguration {
|
|
562
561
|
renderingConfiguration: RenderingConfiguration;
|
|
@@ -1882,6 +1881,8 @@ interface Bundle$1 {
|
|
|
1882
1881
|
getShareActions(): undefined | ShareAction[];
|
|
1883
1882
|
getWorkflowViewerLink(): string;
|
|
1884
1883
|
getWorkflowViewerAmendLink(): string;
|
|
1884
|
+
approve(note?: string): Promise<void>;
|
|
1885
|
+
reject(note?: string): Promise<void>;
|
|
1885
1886
|
}
|
|
1886
1887
|
type BundleEventType = "conditional-global-properties-changed" | "workflow-experience-hover-enter" | "workflow-experience-hover-exit";
|
|
1887
1888
|
type BundleEventData = ConditionalGlobalPropertiesChangedEventData | WorkflowExperienceHoverEventData;
|
|
@@ -2086,7 +2087,7 @@ interface ClientOptions {
|
|
|
2086
2087
|
* The client will use the provided application key to
|
|
2087
2088
|
* authenticate with the SpiffCommerce API. This key can be generated and replaced in Spiffcommerce Hub.
|
|
2088
2089
|
*/
|
|
2089
|
-
applicationKey
|
|
2090
|
+
applicationKey?: string;
|
|
2090
2091
|
}
|
|
2091
2092
|
interface GetBundleGraphqlAssetsOptions {
|
|
2092
2093
|
metadata?: boolean;
|
|
@@ -2333,6 +2334,11 @@ declare class SpiffCommerceClient {
|
|
|
2333
2334
|
}>): Promise<IntegrationProduct>;
|
|
2334
2335
|
getShareActionsForTransaction(transactionId: string): Promise<ShareAction[] | undefined>;
|
|
2335
2336
|
}
|
|
2337
|
+
declare const getIntegration: (applicationKey: string) => Promise<Integration>;
|
|
2338
|
+
declare const getTransaction: (transactionId: string) => Promise<Transaction | undefined>;
|
|
2339
|
+
declare const getOverrideThemeConfiguration: (overrideThemeConfigurationId: string, overrideThemeInstallId: string) => Promise<ThemeInstallConfigurationGraphQl | undefined>;
|
|
2340
|
+
declare const getBundleThemeConfiguration: (bundleId: string) => Promise<ThemeInstallConfigurationGraphQl | undefined>;
|
|
2341
|
+
declare const getTransactionThemeConfiguration: (transactionId: string) => Promise<ThemeInstallConfigurationGraphQl | undefined>;
|
|
2336
2342
|
|
|
2337
2343
|
interface SilentIllustrationStepData extends SilentStepData, Placeable {
|
|
2338
2344
|
}
|
|
@@ -2510,6 +2516,8 @@ interface WorkflowManager {
|
|
|
2510
2516
|
* Returns the tags for a step.
|
|
2511
2517
|
*/
|
|
2512
2518
|
getStepTags(stepId: string): string[];
|
|
2519
|
+
approveTransaction(note?: string): Promise<void>;
|
|
2520
|
+
rejectTransaction(note?: string): Promise<void>;
|
|
2513
2521
|
}
|
|
2514
2522
|
|
|
2515
2523
|
declare enum AssetType {
|
|
@@ -3454,6 +3462,7 @@ interface Transaction {
|
|
|
3454
3462
|
* The amount of this transaction that was, or will be, ordered
|
|
3455
3463
|
*/
|
|
3456
3464
|
quantity?: number;
|
|
3465
|
+
createdAt?: string;
|
|
3457
3466
|
printFileUrl1?: string;
|
|
3458
3467
|
printFileUrl2?: string;
|
|
3459
3468
|
printFileUrl3?: string;
|
|
@@ -3544,6 +3553,7 @@ interface Integration {
|
|
|
3544
3553
|
theme: Theme;
|
|
3545
3554
|
logo: string;
|
|
3546
3555
|
partner: Partner;
|
|
3556
|
+
marketplaceThemeInstallConfiguration?: ThemeInstallConfigurationGraphQl;
|
|
3547
3557
|
}
|
|
3548
3558
|
interface Theme {
|
|
3549
3559
|
configuration?: string;
|
|
@@ -4777,6 +4787,8 @@ declare class DigitalContentStepService implements StepService<DigitalContentSte
|
|
|
4777
4787
|
declare const digitalContentStepService: DigitalContentStepService;
|
|
4778
4788
|
|
|
4779
4789
|
declare class MockWorkflowManager implements WorkflowManager {
|
|
4790
|
+
approveTransaction(_note?: string): Promise<void>;
|
|
4791
|
+
rejectTransaction(_note?: string): Promise<void>;
|
|
4780
4792
|
private client;
|
|
4781
4793
|
getClient(): SpiffCommerceClient;
|
|
4782
4794
|
getWorkflowExperience(): WorkflowExperience;
|
|
@@ -5304,7 +5316,6 @@ declare const dataUrlFromExternalUrl: (url: string) => Promise<string>;
|
|
|
5304
5316
|
declare const svgToDataUrl: (svgString: string) => string;
|
|
5305
5317
|
|
|
5306
5318
|
declare const findElement: <T extends LayoutElement>(id: string, layouts: LayoutState[]) => T;
|
|
5307
|
-
declare const rehydrateSerializedLayout: (transactionState: LayoutsState, variationState?: LayoutsState) => Promise<void>;
|
|
5308
5319
|
|
|
5309
5320
|
/**
|
|
5310
5321
|
* A map of src to pattern image data.
|
|
@@ -5454,4 +5465,29 @@ declare const determineCorrectFontSizeAndLines: (curFontSize: number, fontData:
|
|
|
5454
5465
|
*/
|
|
5455
5466
|
declare const loadFont: (url: string) => Promise<Font>;
|
|
5456
5467
|
|
|
5457
|
-
|
|
5468
|
+
declare const nameBundle: (id: string, name: string, context: any) => Promise<_apollo_client_core.FetchResult<object>>;
|
|
5469
|
+
declare const nameTransaction: (id: string, name: string) => Promise<_apollo_client_core.FetchResult<object>>;
|
|
5470
|
+
declare const duplicateBundle: (id: string, template: boolean) => Promise<_apollo_client_core.FetchResult<{
|
|
5471
|
+
bundleDuplicate: Bundle;
|
|
5472
|
+
}>>;
|
|
5473
|
+
declare const duplicateTransaction: (id: string, template: boolean) => Promise<_apollo_client_core.FetchResult<{
|
|
5474
|
+
transactionDuplicate: Transaction;
|
|
5475
|
+
}>>;
|
|
5476
|
+
declare const getCustomer: (email: string) => Promise<{
|
|
5477
|
+
id: string;
|
|
5478
|
+
}>;
|
|
5479
|
+
declare const getCustomerBundles: (customerId: string, limit: number, offset: number) => Promise<_apollo_client_core.ApolloQueryResult<{
|
|
5480
|
+
customerBundlesFeed: BundlesFeed;
|
|
5481
|
+
}>>;
|
|
5482
|
+
declare const getTransactionsForBundle: (id: string, context: any) => Promise<_apollo_client_core.ApolloQueryResult<{
|
|
5483
|
+
bundles: {
|
|
5484
|
+
id: string;
|
|
5485
|
+
transactions: Transaction[];
|
|
5486
|
+
}[];
|
|
5487
|
+
}>>;
|
|
5488
|
+
declare const getUnorderedTransactions: (customerId: string, limit: number, offset: number) => Promise<Transaction[]>;
|
|
5489
|
+
declare const getOrderedTransactions: (customerId: string, limit: number, offset: number) => Promise<Transaction[]>;
|
|
5490
|
+
declare const getTemplateTransactions: (customerId: string, limit: number, offset: number) => Promise<Transaction[]>;
|
|
5491
|
+
declare const getTemplateBundles: (customerId: string, limit: number, offset: number) => Promise<Bundle[]>;
|
|
5492
|
+
|
|
5493
|
+
export { AddonHandle, Animatable, AnyStepData, ArrayInput, AspectType, Asset, AssetNotFoundError, AssetObjectVersion, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, Bundle$1 as Bundle, BundleDesignCreationMessage, BundleEvent, BundleEventData, BundleEventType, BundleStakeholder, CanvasCommand, CollectionProduct, ColorDefinition, ColorOption, ColorOptionGlobalPropertyHandle, ColorProfileProps, CommandContext, CommandState, Condition, ConditionalGlobalPropertiesChangedEventData, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, CreateElementCommand, CreateLayoutCommand, Customer, CustomerDetailsInput, DeleteElementCommand, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, DigitalContentStepData, DigitalContentStepHandle, EditedSteps, FileUploadGlobalPropertyHandle, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FontAlignmentCommand, FontColorCommand, FontSizeCommand, FontSourceCommand, FrameElement, FrameService, FrameStep, FrameStepData, FrameStepHandle, FrameThresholdSettings, GetNewWorkflowOptions, GetWorkflowOptions, GlobalPropertyConfiguration, GlobalPropertyHandle, GroupCommand, ILayout, IllustrationElement, IllustrationStepData, IllustrationStepHandle, ImageElement, InformationMessageType, InformationResult, InformationStepData, InformationStepHandle, Integration, IntegrationOptionResource, IntegrationProduct, IntegrationType, LayoutData, LayoutElement, LayoutElementFactory, LayoutElementType, LayoutNotFoundError, LayoutRenderingPurpose, LayoutState, LayoutsState, MandatorySteps, MaterialEffectMode, MaterialStepData, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepData, ModelStepHandle, ModuleStepData, ModuleStepHandle, MoveCommand, NodeType, ObjectInput, ObjectInputType, OptionGlobalPropertyHandle, OptionNotFoundError, OptionResource, PapyrusComponent, ParseError, PictureStepData, PictureStepHandle, Placeable, PmsSearchResult, Point, Product, ProductCameraRig, ProductCollection, ProductWorkflow$1 as ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepData, QuestionStepHandle, QueueablePromise, Region, RegionElement, RenderableScene, ResizeCommand, ResourceNotFoundError, RotateCommand, SavedDesign, ScaleAxis, SelectionStorage, SendBackwardsCommand, ShapeStepData, ShapeStepHandle, ShareAction, ShareActionType, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, Step, StepAspect, StepAspectType, StepElements, StepGroup, StepHandle, StepStorage, StepType, TextAlgorithm, TextChangeCommand, TextChangeResult, TextGlobalPropertyHandle, TextInput, TextStepData, TextStepHandle, TextStepStorage, TextboxElement, Theme, ToastCallback, Transaction, Transform, TransformCollection$1 as TransformCollection, UnhandledBehaviorError, UnitOfMeasurement, UpdateImageSourceCommand, Variant, VariantResource, Vector3, Workflow, WorkflowExperience, WorkflowExperienceEventType, WorkflowExperienceHoverEventData, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowPanel, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, browserColorToHex, cmPerPixel, createDesign, currentDirection, dataUrlFromExternalUrl, designService, determineCorrectFontSizeAndLines, digitalContentStepService, duplicateBundle, duplicateTransaction, fetchAsString, findAngle, findElement, findPmsColors, frameDataCache, frameStepService, generate, generateCommands, generateSVGWithUnknownColors, generateStateFromDesignInputSteps, getAttributesFromArrayBuffer, getAxisAlignedBoundingBox, getBoundedOffsets, getBundleThemeConfiguration, getCustomer, getCustomerBundles, getElementVertices, getFrameData, getIntegration, getNEPoint, getNWPoint, getOrderedTransactions, getOverrideThemeConfiguration, getPointOfRotation, getSEPoint, getSvgElement, getTemplateBundles, getTemplateTransactions, getTransaction, getTransactionThemeConfiguration, getTransactionsForBundle, getTrueCoordinates, getUnorderedTransactions, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, isCloseToValue, loadFont, matchHexToPms, materialStepService, mmPerPixel, modelStepService, moduleStepService, nameBundle, nameTransaction, optionService, patternImageDataCache, persistenceService, pictureStepService, pmsToRgb, questionStepService, registerFetchImplementation, registerWindowImplementation, rgbToPms, rotateAroundPoint, sanitizeSvgTree, setBearerAuthenticationToken, setCanvasModule, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, svgColorValueToDefinition, svgStringDimensions, svgToDataUrl, textStepService, toast, xmlSerializer };
|