polytomic 1.0.0 → 1.2.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.
Files changed (95) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +11 -11
  3. package/api/errors/index.d.ts +2 -2
  4. package/api/errors/index.js +2 -2
  5. package/api/resources/bulkSync/client/Client.js +10 -10
  6. package/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  7. package/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  8. package/api/resources/connections/client/Client.js +8 -8
  9. package/api/resources/events/client/Client.js +2 -2
  10. package/api/resources/identity/client/Client.js +1 -1
  11. package/api/resources/index.d.ts +2 -2
  12. package/api/resources/index.js +3 -3
  13. package/api/resources/jobs/client/Client.js +1 -1
  14. package/api/resources/modelSync/client/Client.js +13 -13
  15. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -0
  16. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -0
  17. package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  18. package/api/resources/models/client/Client.d.ts +31 -3
  19. package/api/resources/models/client/Client.js +150 -8
  20. package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +11 -0
  21. package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +17 -0
  22. package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +17 -0
  23. package/api/resources/models/client/requests/ModelsPreviewRequest.js +5 -0
  24. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -0
  25. package/api/resources/models/client/requests/index.d.ts +3 -1
  26. package/api/resources/organization/client/Client.js +5 -5
  27. package/api/resources/permissions/resources/policies/client/Client.js +5 -5
  28. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  29. package/api/resources/schemas/client/Client.js +4 -4
  30. package/api/resources/users/client/Client.js +6 -6
  31. package/api/resources/webhooks/client/Client.js +5 -5
  32. package/api/types/ConnectionResponseSchema.d.ts +2 -0
  33. package/api/{resources/models/client/requests → types}/CreateModelRequest.d.ts +2 -9
  34. package/api/types/CreateModelRequest.js +5 -0
  35. package/api/types/Enrichment.d.ts +13 -0
  36. package/api/types/Enrichment.js +5 -0
  37. package/api/types/ModelResponse.d.ts +1 -0
  38. package/api/types/V2EnricherConfiguration.d.ts +7 -0
  39. package/api/types/V2EnricherConfiguration.js +5 -0
  40. package/api/types/V2EnricherMapping.d.ts +7 -0
  41. package/api/types/V2EnricherMapping.js +5 -0
  42. package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +6 -0
  43. package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +5 -0
  44. package/api/types/index.d.ts +5 -0
  45. package/api/types/index.js +5 -0
  46. package/dist/Client.d.ts +3 -3
  47. package/dist/Client.js +11 -11
  48. package/dist/api/errors/index.d.ts +2 -2
  49. package/dist/api/errors/index.js +2 -2
  50. package/dist/api/resources/bulkSync/client/Client.js +10 -10
  51. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  52. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  53. package/dist/api/resources/connections/client/Client.js +8 -8
  54. package/dist/api/resources/events/client/Client.js +2 -2
  55. package/dist/api/resources/identity/client/Client.js +1 -1
  56. package/dist/api/resources/index.d.ts +2 -2
  57. package/dist/api/resources/index.js +3 -3
  58. package/dist/api/resources/jobs/client/Client.js +1 -1
  59. package/dist/api/resources/modelSync/client/Client.js +13 -13
  60. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -0
  61. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -0
  62. package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  63. package/dist/api/resources/models/client/Client.d.ts +31 -3
  64. package/dist/api/resources/models/client/Client.js +150 -8
  65. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +11 -0
  66. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.js +5 -0
  67. package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +17 -0
  68. package/dist/api/resources/models/client/requests/ModelsCreateRequest.js +5 -0
  69. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +17 -0
  70. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.js +5 -0
  71. package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -0
  72. package/dist/api/resources/models/client/requests/index.d.ts +3 -1
  73. package/dist/api/resources/organization/client/Client.js +5 -5
  74. package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
  75. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  76. package/dist/api/resources/schemas/client/Client.js +4 -4
  77. package/dist/api/resources/users/client/Client.js +6 -6
  78. package/dist/api/resources/webhooks/client/Client.js +5 -5
  79. package/dist/api/types/ConnectionResponseSchema.d.ts +2 -0
  80. package/dist/api/{resources/models/client/requests → types}/CreateModelRequest.d.ts +2 -9
  81. package/dist/api/types/CreateModelRequest.js +5 -0
  82. package/dist/api/types/Enrichment.d.ts +13 -0
  83. package/dist/api/types/Enrichment.js +5 -0
  84. package/dist/api/types/ModelResponse.d.ts +1 -0
  85. package/dist/api/types/V2EnricherConfiguration.d.ts +7 -0
  86. package/dist/api/types/V2EnricherConfiguration.js +5 -0
  87. package/dist/api/types/V2EnricherMapping.d.ts +7 -0
  88. package/dist/api/types/V2EnricherMapping.js +5 -0
  89. package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +6 -0
  90. package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +5 -0
  91. package/dist/api/types/index.d.ts +5 -0
  92. package/dist/api/types/index.js +5 -0
  93. package/package.json +1 -1
  94. /package/api/resources/models/client/requests/{CreateModelRequest.js → GetEnrichmentInputFieldsRequest.js} +0 -0
  95. /package/{dist/api/resources/models/client/requests/CreateModelRequest.js → api/resources/models/client/requests/ModelsCreateRequest.js} +0 -0
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "..";
5
+ export interface Enrichment {
6
+ configuration?: Polytomic.V2EnricherConfiguration;
7
+ connection_id?: string;
8
+ /** Must be provided to update an existing enrichment */
9
+ enricher_id?: string;
10
+ /** If not provided, all fields will be enabled. */
11
+ fields?: Polytomic.ModelField[];
12
+ mappings?: Polytomic.V2EnricherMapping;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,7 @@ import * as Polytomic from "..";
5
5
  export interface ModelResponse {
6
6
  configuration?: Record<string, unknown>;
7
7
  connection_id?: string;
8
+ enricher?: Polytomic.Enrichment;
8
9
  fields?: Polytomic.ModelField[];
9
10
  id?: string;
10
11
  identifier?: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ /**
5
+ * Similar to a model configuration, this configures the enricher. For example, if you wanted to use Apollo to enrich people, you would send `{"object": "people"}` as the configuration. Each enricher configuration can be found in the connection configuration docs.
6
+ */
7
+ export declare type V2EnricherConfiguration = Record<string, unknown>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ /**
5
+ * A map of parent model Source Name to child model Source Name. For example, if your model has a field called `work_email` and the enricher accepts a field called `email`, you'd send a map of `{"work_email":"email"}`. The set of required input mappings varies based on the configuration of the enrichment. You can use the `enrichment/{connection_id}/inputfields` API to discover available input field combinations for a given configuration.
6
+ */
7
+ export declare type V2EnricherMapping = Record<string, string>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ export interface V2GetEnrichmentInputFieldsResponseEnvelope {
5
+ data?: string[][];
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -41,6 +41,10 @@ export * from "./ConnectionTypeResponseEnvelope";
41
41
  export * from "./ConnectionTypeSchema";
42
42
  export * from "./CreateConnectionResponseEnvelope";
43
43
  export * from "./CreateConnectionResponseSchema";
44
+ export * from "./CreateModelRequest";
45
+ export * from "./V2EnricherConfiguration";
46
+ export * from "./V2EnricherMapping";
47
+ export * from "./Enrichment";
44
48
  export * from "./Event";
45
49
  export * from "./EventTypesEnvelope";
46
50
  export * from "./EventsEnvelope";
@@ -49,6 +53,7 @@ export * from "./ExecutionLogResponse";
49
53
  export * from "./ExecutionLogsResponseEnvelope";
50
54
  export * from "./Filter";
51
55
  export * from "./GetConnectionMetaEnvelope";
56
+ export * from "./V2GetEnrichmentInputFieldsResponseEnvelope";
52
57
  export * from "./GetExecutionResponseEnvelope";
53
58
  export * from "./GetExecutionResponseSchema";
54
59
  export * from "./GetIdentityResponseEnvelope";
@@ -57,6 +57,10 @@ __exportStar(require("./ConnectionTypeResponseEnvelope"), exports);
57
57
  __exportStar(require("./ConnectionTypeSchema"), exports);
58
58
  __exportStar(require("./CreateConnectionResponseEnvelope"), exports);
59
59
  __exportStar(require("./CreateConnectionResponseSchema"), exports);
60
+ __exportStar(require("./CreateModelRequest"), exports);
61
+ __exportStar(require("./V2EnricherConfiguration"), exports);
62
+ __exportStar(require("./V2EnricherMapping"), exports);
63
+ __exportStar(require("./Enrichment"), exports);
60
64
  __exportStar(require("./Event"), exports);
61
65
  __exportStar(require("./EventTypesEnvelope"), exports);
62
66
  __exportStar(require("./EventsEnvelope"), exports);
@@ -65,6 +69,7 @@ __exportStar(require("./ExecutionLogResponse"), exports);
65
69
  __exportStar(require("./ExecutionLogsResponseEnvelope"), exports);
66
70
  __exportStar(require("./Filter"), exports);
67
71
  __exportStar(require("./GetConnectionMetaEnvelope"), exports);
72
+ __exportStar(require("./V2GetEnrichmentInputFieldsResponseEnvelope"), exports);
68
73
  __exportStar(require("./GetExecutionResponseEnvelope"), exports);
69
74
  __exportStar(require("./GetExecutionResponseSchema"), exports);
70
75
  __exportStar(require("./GetIdentityResponseEnvelope"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polytomic",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "repository": "https://github.com/polytomic/polytomic-typescript",
6
6
  "license": "MIT",