@foxy.io/sdk 1.8.1 → 1.8.2

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.
@@ -12,8 +12,6 @@ export interface Attribute extends Graph {
12
12
  };
13
13
 
14
14
  props: {
15
- /** Controls who can see this attribute. Only public attributes are accessible via this API. */
16
- visibility: 'public';
17
15
  /** The name of this attribute. */
18
16
  name: string;
19
17
  /** The value of this attribute. */
@@ -0,0 +1,24 @@
1
+ import type { Graph } from '../../core';
2
+ import type { Transaction } from './transaction';
3
+
4
+ export interface CustomField extends Graph {
5
+ curie: 'fx:custom_field';
6
+
7
+ links: {
8
+ /** This resource. */
9
+ 'self': CustomField;
10
+ /** Transaction this custom field is linked to. */
11
+ 'fx:transaction': Transaction;
12
+ };
13
+
14
+ props: {
15
+ /** The name of the custom field. */
16
+ name: string;
17
+ /** The value of this custom field. */
18
+ value: string;
19
+ /** The date this resource was created. */
20
+ date_created: string | null;
21
+ /** The date this resource was last modified. */
22
+ date_modified: string | null;
23
+ };
24
+ }
@@ -0,0 +1,10 @@
1
+ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults';
2
+ import type { CustomField } from './custom_field';
3
+ import type { Graph } from '../../core';
4
+
5
+ export interface CustomFields extends Graph {
6
+ curie: 'fx:custom_fields';
7
+ links: CollectionGraphLinks<CustomFields>;
8
+ props: CollectionGraphProps;
9
+ child: CustomField;
10
+ }
@@ -1,4 +1,5 @@
1
1
  import type { Attributes } from './attributes';
2
+ import type { CustomFields } from './custom_fields';
2
3
  import type { Graph as Customer } from './index';
3
4
  import type { Graph } from '../../core';
4
5
  import type { Items } from './items';
@@ -15,6 +16,8 @@ export interface Transaction extends Graph {
15
16
  'fx:customer': Customer;
16
17
  /** List of custom attributes on this transaction. */
17
18
  'fx:attributes': Attributes;
19
+ /** List of custom fields on this transaction. */
20
+ 'fx:custom_fields': CustomFields;
18
21
  /** List of items for this transaction. */
19
22
  'fx:items': Items;
20
23
  };
@@ -71,6 +74,7 @@ export interface Transaction extends Graph {
71
74
  };
72
75
 
73
76
  zooms: {
77
+ custom_fields?: CustomFields;
74
78
  attributes: Attributes;
75
79
  customer?: Customer;
76
80
  items?: Items;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foxy.io/sdk",
3
3
  "type": "commonjs",
4
- "version": "1.8.1",
4
+ "version": "1.8.2",
5
5
  "description": "Universal SDK for a full server-side and a limited in-browser access to Foxy hAPI.",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",