@hubspot/local-dev-lib 0.1.6-experimental.0 → 0.1.7-experimental.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/api/customObjects.d.ts +4 -4
- package/package.json +1 -1
- package/types/CustomObject.d.ts +14 -10
- package/types/Schemas.d.ts +17 -15
package/api/customObjects.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FetchSchemasResponse, Schema, CreateObjectsResponse } from '../types/Schemas';
|
|
1
|
+
import { FetchSchemasResponse, Schema, SchemaDefinition, CreateObjectsResponse } from '../types/Schemas';
|
|
2
2
|
import { HubSpotPromise } from '../types/Http';
|
|
3
3
|
import { ObjectDefinition } from '../types/CustomObject';
|
|
4
|
-
export declare function batchCreateObjects(accountId: number, objectTypeId: string, objects: ObjectDefinition
|
|
5
|
-
export declare function createObjectSchema(accountId: number, schema:
|
|
6
|
-
export declare function updateObjectSchema(accountId: number, schemaObjectType: string, schema:
|
|
4
|
+
export declare function batchCreateObjects(accountId: number, objectTypeId: string, objects: ObjectDefinition): HubSpotPromise<CreateObjectsResponse>;
|
|
5
|
+
export declare function createObjectSchema(accountId: number, schema: SchemaDefinition): HubSpotPromise<Schema>;
|
|
6
|
+
export declare function updateObjectSchema(accountId: number, schemaObjectType: string, schema: SchemaDefinition): HubSpotPromise<Schema>;
|
|
7
7
|
export declare function fetchObjectSchema(accountId: number, schemaObjectType: string): HubSpotPromise<Schema>;
|
|
8
8
|
export declare function fetchObjectSchemas(accountId: number): HubSpotPromise<FetchSchemasResponse>;
|
|
9
9
|
export declare function deleteObjectSchema(accountId: number, schemaObjectType: string): HubSpotPromise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/local-dev-lib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7-experimental.0",
|
|
4
4
|
"description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"repository": {
|
package/types/CustomObject.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
export type ObjectDefinition = {
|
|
2
|
-
|
|
2
|
+
inputs: [
|
|
3
3
|
{
|
|
4
|
-
|
|
4
|
+
associations?: [
|
|
5
5
|
{
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
types: [
|
|
7
|
+
{
|
|
8
|
+
associationCategory: string;
|
|
9
|
+
associationTypeId: number;
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
to: {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
8
15
|
}
|
|
9
16
|
];
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
objectWriteTraceId?: number;
|
|
18
|
+
properties: {
|
|
19
|
+
[key: string]: string;
|
|
12
20
|
};
|
|
13
21
|
}
|
|
14
22
|
];
|
|
15
|
-
objectWriteTraceId: string;
|
|
16
|
-
properties: {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
};
|
|
19
23
|
};
|
package/types/Schemas.d.ts
CHANGED
|
@@ -37,22 +37,24 @@ export type CreateObjectsResponse = {
|
|
|
37
37
|
archived: boolean;
|
|
38
38
|
}>;
|
|
39
39
|
};
|
|
40
|
-
export type
|
|
41
|
-
|
|
40
|
+
export type SchemaDefinition = {
|
|
41
|
+
allowsSensitiveProperties?: boolean;
|
|
42
|
+
associatedObjects?: Array<string>;
|
|
43
|
+
description?: string;
|
|
44
|
+
labels: {
|
|
45
|
+
plural: string;
|
|
46
|
+
singular: string;
|
|
47
|
+
};
|
|
48
|
+
searchableProperties?: Array<string>;
|
|
49
|
+
secondaryDisplayProperties?: Array<string>;
|
|
50
|
+
name: string;
|
|
51
|
+
primaryDisplayProperty?: string;
|
|
52
|
+
properties: [
|
|
42
53
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
associationTypeId: number;
|
|
47
|
-
}
|
|
48
|
-
];
|
|
49
|
-
to: {
|
|
50
|
-
id: string;
|
|
51
|
-
};
|
|
54
|
+
isPrimaryDisplayLabel: true;
|
|
55
|
+
label: string;
|
|
56
|
+
name: string;
|
|
52
57
|
}
|
|
53
58
|
];
|
|
54
|
-
|
|
55
|
-
properties: {
|
|
56
|
-
[key: string]: string;
|
|
57
|
-
};
|
|
59
|
+
requiredProperties: Array<string>;
|
|
58
60
|
};
|