@segment/public-api-sdk-typescript 36.1.0-b7586 → 36.1.1-b7589
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/README.md +1 -1
- package/api/aPICallsApi.ts +1 -1
- package/api/apis.ts +2 -2
- package/api/auditTrailApi.ts +1 -1
- package/api/catalogApi.ts +1 -1
- package/api/deletionAndSuppressionApi.ts +1 -1
- package/api/destinationFiltersApi.ts +1 -1
- package/api/destinationsApi.ts +1 -1
- package/api/edgeFunctionsApi.ts +1 -1
- package/api/eventsApi.ts +1 -1
- package/api/functionsApi.ts +511 -1
- package/api/iAMGroupsApi.ts +1 -1
- package/api/iAMRolesApi.ts +1 -1
- package/api/iAMUsersApi.ts +1 -1
- package/api/labelsApi.ts +1 -1
- package/api/monthlyTrackedUsersApi.ts +1 -1
- package/api/profilesSyncApi.ts +1 -1
- package/api/reverseETLApi.ts +1 -1
- package/api/selectiveSyncApi.ts +1 -1
- package/api/sourcesApi.ts +1 -1
- package/api/spacesApi.ts +1 -1
- package/api/testingApi.ts +1 -1
- package/api/trackingPlansApi.ts +1 -1
- package/api/transformationsApi.ts +1 -1
- package/api/warehousesApi.ts +1 -1
- package/api/workspacesApi.ts +1 -1
- package/dist/api/apis.js +2 -2
- package/dist/api/functionsApi.d.ts +38 -0
- package/dist/api/functionsApi.js +371 -21
- package/dist/api/functionsApi.js.map +1 -1
- package/dist/model/createInsertFunctionInstance200Response.d.ts +15 -0
- package/dist/model/createInsertFunctionInstance200Response.js +21 -0
- package/dist/model/createInsertFunctionInstance200Response.js.map +1 -0
- package/dist/model/createInsertFunctionInstanceAlphaInput.d.ts +20 -0
- package/dist/model/createInsertFunctionInstanceAlphaInput.js +41 -0
- package/dist/model/createInsertFunctionInstanceAlphaInput.js.map +1 -0
- package/dist/model/createInsertFunctionInstanceAlphaOutput.d.ts +15 -0
- package/dist/model/createInsertFunctionInstanceAlphaOutput.js +21 -0
- package/dist/model/createInsertFunctionInstanceAlphaOutput.js.map +1 -0
- package/dist/model/deleteInsertFunctionInstance200Response.d.ts +15 -0
- package/dist/model/deleteInsertFunctionInstance200Response.js +21 -0
- package/dist/model/deleteInsertFunctionInstance200Response.js.map +1 -0
- package/dist/model/deleteInsertFunctionInstanceAlphaOutput.d.ts +19 -0
- package/dist/model/deleteInsertFunctionInstanceAlphaOutput.js +28 -0
- package/dist/model/deleteInsertFunctionInstanceAlphaOutput.js.map +1 -0
- package/dist/model/insertFunctionInstance.d.ts +26 -0
- package/dist/model/insertFunctionInstance.js +61 -0
- package/dist/model/insertFunctionInstance.js.map +1 -0
- package/dist/model/insertFunctionInstance1.d.ts +26 -0
- package/dist/model/insertFunctionInstance1.js +61 -0
- package/dist/model/insertFunctionInstance1.js.map +1 -0
- package/dist/model/insertFunctionInstanceAlpha.d.ts +26 -0
- package/dist/model/insertFunctionInstanceAlpha.js +61 -0
- package/dist/model/insertFunctionInstanceAlpha.js.map +1 -0
- package/dist/model/listInsertFunctionInstances200Response.d.ts +15 -0
- package/dist/model/listInsertFunctionInstances200Response.js +21 -0
- package/dist/model/listInsertFunctionInstances200Response.js.map +1 -0
- package/dist/model/listInsertFunctionInstancesAlphaOutput.d.ts +17 -0
- package/dist/model/listInsertFunctionInstancesAlphaOutput.js +26 -0
- package/dist/model/listInsertFunctionInstancesAlphaOutput.js.map +1 -0
- package/dist/model/models.d.ts +13 -0
- package/dist/model/models.js +40 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/updateInsertFunctionInstance200Response.d.ts +15 -0
- package/dist/model/updateInsertFunctionInstance200Response.js +21 -0
- package/dist/model/updateInsertFunctionInstance200Response.js.map +1 -0
- package/dist/model/updateInsertFunctionInstanceAlphaInput.d.ts +18 -0
- package/dist/model/updateInsertFunctionInstanceAlphaInput.js +31 -0
- package/dist/model/updateInsertFunctionInstanceAlphaInput.js.map +1 -0
- package/dist/model/updateInsertFunctionInstanceAlphaOutput.d.ts +15 -0
- package/dist/model/updateInsertFunctionInstanceAlphaOutput.js +21 -0
- package/dist/model/updateInsertFunctionInstanceAlphaOutput.js.map +1 -0
- package/model/aPICallSnapshotV1.ts +1 -1
- package/model/accessPermissionV1.ts +1 -1
- package/model/addConnectionFromSourceToWarehouse200Response.ts +1 -1
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
- package/model/addLabelsToSource200Response.ts +1 -1
- package/model/addLabelsToSource200Response1.ts +1 -1
- package/model/addLabelsToSourceAlphaInput.ts +1 -1
- package/model/addLabelsToSourceAlphaOutput.ts +1 -1
- package/model/addLabelsToSourceV1Input.ts +1 -1
- package/model/addLabelsToSourceV1Output.ts +1 -1
- package/model/addPermissionsToUser200Response.ts +1 -1
- package/model/addPermissionsToUserGroup200Response.ts +1 -1
- package/model/addPermissionsToUserGroupV1Input.ts +1 -1
- package/model/addPermissionsToUserGroupV1Output.ts +1 -1
- package/model/addPermissionsToUserV1Input.ts +1 -1
- package/model/addPermissionsToUserV1Output.ts +1 -1
- package/model/addSourceToTrackingPlan200Response.ts +1 -1
- package/model/addSourceToTrackingPlanV1Input.ts +1 -1
- package/model/addSourceToTrackingPlanV1Output.ts +1 -1
- package/model/addUsersToUserGroup200Response.ts +1 -1
- package/model/addUsersToUserGroupV1Input.ts +1 -1
- package/model/addUsersToUserGroupV1Output.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Input.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Output.ts +1 -1
- package/model/allowedLabelBeta.ts +1 -1
- package/model/auditEventV1.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +1 -1
- package/model/breakdownBeta.ts +1 -1
- package/model/commonSourceSettingsV1.ts +1 -1
- package/model/contact.ts +1 -1
- package/model/createCloudSourceRegulation200Response.ts +1 -1
- package/model/createCloudSourceRegulationV1Input.ts +1 -1
- package/model/createCloudSourceRegulationV1Output.ts +1 -1
- package/model/createDestination200Response.ts +1 -1
- package/model/createDestinationSubscription200Response.ts +1 -1
- package/model/createDestinationSubscriptionAlphaInput.ts +1 -1
- package/model/createDestinationSubscriptionAlphaOutput.ts +1 -1
- package/model/createDestinationV1Input.ts +1 -1
- package/model/createDestinationV1Output.ts +1 -1
- package/model/createEdgeFunctions200Response.ts +1 -1
- package/model/createEdgeFunctionsAlphaInput.ts +1 -1
- package/model/createEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/createFilterForDestination200Response.ts +1 -1
- package/model/createFilterForDestinationV1Input.ts +1 -1
- package/model/createFilterForDestinationV1Output.ts +1 -1
- package/model/createFunction200Response.ts +1 -1
- package/model/createFunctionDeployment200Response.ts +1 -1
- package/model/createFunctionDeploymentV1Output.ts +1 -1
- package/model/createFunctionV1Input.ts +1 -1
- package/model/createFunctionV1Output.ts +1 -1
- package/model/createInsertFunctionInstance200Response.ts +36 -0
- package/model/createInsertFunctionInstanceAlphaInput.ts +77 -0
- package/model/createInsertFunctionInstanceAlphaOutput.ts +39 -0
- package/model/createInvites200Response.ts +1 -1
- package/model/createInvitesV1Input.ts +1 -1
- package/model/createInvitesV1Output.ts +1 -1
- package/model/createLabel200Response.ts +1 -1
- package/model/createLabelV1Input.ts +1 -1
- package/model/createLabelV1Output.ts +1 -1
- package/model/createProfilesWarehouse200Response.ts +1 -1
- package/model/createProfilesWarehouseAlphaInput.ts +1 -1
- package/model/createProfilesWarehouseAlphaOutput.ts +1 -1
- package/model/createReverseEtlModel200Response.ts +1 -1
- package/model/createReverseEtlModelInput.ts +1 -1
- package/model/createReverseEtlModelOutput.ts +1 -1
- package/model/createSource200Response.ts +1 -1
- package/model/createSource200Response1.ts +1 -1
- package/model/createSourceAlphaInput.ts +1 -1
- package/model/createSourceAlphaOutput.ts +1 -1
- package/model/createSourceRegulation200Response.ts +1 -1
- package/model/createSourceRegulationV1Input.ts +1 -1
- package/model/createSourceRegulationV1Output.ts +1 -1
- package/model/createSourceV1Input.ts +1 -1
- package/model/createSourceV1Output.ts +1 -1
- package/model/createTrackingPlan200Response.ts +1 -1
- package/model/createTrackingPlanV1Input.ts +1 -1
- package/model/createTrackingPlanV1Output.ts +1 -1
- package/model/createTransformation200Response.ts +1 -1
- package/model/createTransformationBetaInput.ts +1 -1
- package/model/createTransformationBetaOutput.ts +1 -1
- package/model/createTransformationV1Input.ts +1 -1
- package/model/createTransformationV1Output.ts +1 -1
- package/model/createUserGroup200Response.ts +1 -1
- package/model/createUserGroupV1Input.ts +1 -1
- package/model/createUserGroupV1Output.ts +1 -1
- package/model/createValidationInWarehouse200Response.ts +1 -1
- package/model/createValidationInWarehouseV1Input.ts +1 -1
- package/model/createValidationInWarehouseV1Output.ts +1 -1
- package/model/createWarehouse200Response.ts +1 -1
- package/model/createWarehouseV1Input.ts +1 -1
- package/model/createWarehouseV1Output.ts +1 -1
- package/model/createWorkspaceRegulation200Response.ts +1 -1
- package/model/createWorkspaceRegulationV1Input.ts +1 -1
- package/model/createWorkspaceRegulationV1Output.ts +1 -1
- package/model/deleteDestination200Response.ts +1 -1
- package/model/deleteDestinationV1Output.ts +1 -1
- package/model/deleteFunction200Response.ts +1 -1
- package/model/deleteFunctionV1Output.ts +1 -1
- package/model/deleteInsertFunctionInstance200Response.ts +36 -0
- package/model/deleteInsertFunctionInstanceAlphaOutput.ts +47 -0
- package/model/deleteInvites200Response.ts +1 -1
- package/model/deleteInvitesV1Output.ts +1 -1
- package/model/deleteLabel200Response.ts +1 -1
- package/model/deleteLabel200Response1.ts +1 -1
- package/model/deleteLabelAlphaOutput.ts +1 -1
- package/model/deleteLabelV1Output.ts +1 -1
- package/model/deleteRegulation200Response.ts +1 -1
- package/model/deleteRegulationV1Output.ts +1 -1
- package/model/deleteReverseEtlModel200Response.ts +1 -1
- package/model/deleteReverseEtlModelOutput.ts +1 -1
- package/model/deleteSource200Response.ts +1 -1
- package/model/deleteSource200Response1.ts +1 -1
- package/model/deleteSourceAlphaOutput.ts +1 -1
- package/model/deleteSourceV1Output.ts +1 -1
- package/model/deleteTrackingPlan200Response.ts +1 -1
- package/model/deleteTrackingPlanV1Output.ts +1 -1
- package/model/deleteTransformation200Response.ts +1 -1
- package/model/deleteTransformationBetaInput.ts +1 -1
- package/model/deleteTransformationBetaOutput.ts +1 -1
- package/model/deleteTransformationV1Output.ts +1 -1
- package/model/deleteUserGroup200Response.ts +1 -1
- package/model/deleteUserGroupV1Output.ts +1 -1
- package/model/deleteUsers200Response.ts +1 -1
- package/model/deleteUsersV1Output.ts +1 -1
- package/model/deleteWarehouse200Response.ts +1 -1
- package/model/deleteWarehouseV1Output.ts +1 -1
- package/model/deliveryMetricsSummary.ts +1 -1
- package/model/deliveryMetricsSummaryBeta.ts +1 -1
- package/model/destination.ts +1 -1
- package/model/destination1.ts +1 -1
- package/model/destination2.ts +1 -1
- package/model/destinationFilterActionV1.ts +1 -1
- package/model/destinationFilterV1.ts +1 -1
- package/model/destinationMetadata.ts +1 -1
- package/model/destinationMetadataActionFieldV1.ts +1 -1
- package/model/destinationMetadataActionV1.ts +1 -1
- package/model/destinationMetadataComponentV1.ts +1 -1
- package/model/destinationMetadataFeaturesV1.ts +1 -1
- package/model/destinationMetadataMethodsV1.ts +1 -1
- package/model/destinationMetadataPlatformsV1.ts +1 -1
- package/model/destinationMetadataSubscriptionPresetV1.ts +1 -1
- package/model/destinationMetadataV1.ts +1 -1
- package/model/destinationStatusV1.ts +1 -1
- package/model/destinationSubscription.ts +1 -1
- package/model/destinationSubscriptionUpdateInput.ts +1 -1
- package/model/destinationV1.ts +1 -1
- package/model/disableEdgeFunctions200Response.ts +1 -1
- package/model/disableEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/echo200Response.ts +1 -1
- package/model/echo200Response1.ts +1 -1
- package/model/echoAlphaOutput.ts +1 -1
- package/model/echoV1Output.ts +1 -1
- package/model/edgeFunctions.ts +1 -1
- package/model/edgeFunctions1.ts +1 -1
- package/model/edgeFunctionsAlpha.ts +1 -1
- package/model/eventSourceV1.ts +1 -1
- package/model/fQLDefinedPropertyV1.ts +1 -1
- package/model/filter.ts +1 -1
- package/model/filter1.ts +1 -1
- package/model/filter2.ts +1 -1
- package/model/filter3.ts +1 -1
- package/model/function.ts +1 -1
- package/model/function1.ts +1 -1
- package/model/function2.ts +1 -1
- package/model/functionDeployment.ts +1 -1
- package/model/functionSettingV1.ts +1 -1
- package/model/functionV1.ts +1 -1
- package/model/generateUploadURLForEdgeFunctions200Response.ts +1 -1
- package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
- package/model/getConnectionStateFromWarehouse200Response.ts +1 -1
- package/model/getConnectionStateFromWarehouseV1Output.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyPerSourceMTUUsage200Response.ts +1 -1
- package/model/getDailyPerSourceMTUUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceMTUUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceMTUUsageV1Output.ts +1 -1
- package/model/getDestination200Response.ts +1 -1
- package/model/getDestinationMetadata200Response.ts +1 -1
- package/model/getDestinationMetadataV1Output.ts +1 -1
- package/model/getDestinationV1Output.ts +1 -1
- package/model/getDestinationsCatalog200Response.ts +1 -1
- package/model/getDestinationsCatalogV1Output.ts +1 -1
- package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Query.ts +1 -1
- package/model/getFilterInDestination200Response.ts +1 -1
- package/model/getFilterInDestinationV1Output.ts +1 -1
- package/model/getFunction200Response.ts +1 -1
- package/model/getFunctionV1Output.ts +1 -1
- package/model/getFunctionVersion200Response.ts +1 -1
- package/model/getFunctionVersionAlphaOutput.ts +1 -1
- package/model/getLatestFromEdgeFunctions200Response.ts +1 -1
- package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getMessagingSubscriptionFailureResponse.ts +1 -1
- package/model/getMessagingSubscriptionSuccessResponse.ts +1 -1
- package/model/getRegulation200Response.ts +1 -1
- package/model/getRegulationV1Output.ts +1 -1
- package/model/getReverseEtlModel200Response.ts +1 -1
- package/model/getReverseEtlModelOutput.ts +1 -1
- package/model/getSource200Response.ts +1 -1
- package/model/getSource200Response1.ts +1 -1
- package/model/getSourceAlphaOutput.ts +1 -1
- package/model/getSourceMetadata200Response.ts +1 -1
- package/model/getSourceMetadataV1Output.ts +1 -1
- package/model/getSourceV1Output.ts +1 -1
- package/model/getSourcesCatalog200Response.ts +1 -1
- package/model/getSourcesCatalogV1Output.ts +1 -1
- package/model/getSpace200Response.ts +1 -1
- package/model/getSpaceAlphaOutput.ts +1 -1
- package/model/getSubscriptionFromDestination200Response.ts +1 -1
- package/model/getSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/getSubscriptionRequest.ts +1 -1
- package/model/getTrackingPlan200Response.ts +1 -1
- package/model/getTrackingPlanV1Output.ts +1 -1
- package/model/getTransformation200Response.ts +1 -1
- package/model/getTransformationBetaInput.ts +1 -1
- package/model/getTransformationBetaOutput.ts +1 -1
- package/model/getTransformationV1Output.ts +1 -1
- package/model/getUser200Response.ts +1 -1
- package/model/getUserGroup200Response.ts +1 -1
- package/model/getUserGroupV1Output.ts +1 -1
- package/model/getUserV1Output.ts +1 -1
- package/model/getWarehouse200Response.ts +1 -1
- package/model/getWarehouseMetadata200Response.ts +1 -1
- package/model/getWarehouseMetadataV1Output.ts +1 -1
- package/model/getWarehouseV1Output.ts +1 -1
- package/model/getWarehousesCatalog200Response.ts +1 -1
- package/model/getWarehousesCatalogV1Output.ts +1 -1
- package/model/getWorkspace200Response.ts +1 -1
- package/model/getWorkspaceV1Output.ts +1 -1
- package/model/group.ts +1 -1
- package/model/groupSourceSettingsV1.ts +1 -1
- package/model/groupSubscriptionStatus.ts +1 -1
- package/model/groupSubscriptionStatusResponse.ts +1 -1
- package/model/handleWebhookInput.ts +1 -1
- package/model/handleWebhookOutput.ts +1 -1
- package/model/identify.ts +1 -1
- package/model/identifySourceSettingsV1.ts +1 -1
- package/model/input.ts +1 -1
- package/model/insertFunctionInstance.ts +87 -0
- package/model/insertFunctionInstance1.ts +87 -0
- package/model/insertFunctionInstanceAlpha.ts +83 -0
- package/model/integrationOptionBeta.ts +1 -1
- package/model/invitePermissionV1.ts +1 -1
- package/model/inviteV1.ts +1 -1
- package/model/label.ts +1 -1
- package/model/label1.ts +1 -1
- package/model/labelAlpha.ts +1 -1
- package/model/labelV1.ts +1 -1
- package/model/listAuditEvents200Response.ts +1 -1
- package/model/listAuditEventsV1Output.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response1.ts +1 -1
- package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSourceV1Output.ts +1 -1
- package/model/listConnectedSourcesFromWarehouse200Response.ts +1 -1
- package/model/listConnectedSourcesFromWarehouseV1Output.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response1.ts +1 -1
- package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedWarehousesFromSourceV1Output.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +1 -1
- package/model/listDestinations200Response.ts +1 -1
- package/model/listDestinationsV1Output.ts +1 -1
- package/model/listFiltersFromDestination200Response.ts +1 -1
- package/model/listFiltersFromDestinationV1Output.ts +1 -1
- package/model/listFunctionItemV1.ts +1 -1
- package/model/listFunctionVersions200Response.ts +1 -1
- package/model/listFunctionVersionsAlphaOutput.ts +1 -1
- package/model/listFunctions200Response.ts +1 -1
- package/model/listFunctionsV1Output.ts +1 -1
- package/model/listInsertFunctionInstances200Response.ts +36 -0
- package/model/listInsertFunctionInstancesAlphaOutput.ts +49 -0
- package/model/listInvites200Response.ts +1 -1
- package/model/listInvitesFromUserGroup200Response.ts +1 -1
- package/model/listInvitesFromUserGroupV1Output.ts +1 -1
- package/model/listInvitesV1Output.ts +1 -1
- package/model/listLabels200Response.ts +1 -1
- package/model/listLabels200Response1.ts +1 -1
- package/model/listLabelsAlphaOutput.ts +1 -1
- package/model/listLabelsV1Output.ts +1 -1
- package/model/listProfilesWarehouseInSpace200Response.ts +1 -1
- package/model/listProfilesWarehouseInSpaceAlphaOutput.ts +1 -1
- package/model/listRegulationsFromSource200Response.ts +1 -1
- package/model/listRegulationsFromSourceV1Output.ts +1 -1
- package/model/listReverseEtlModels200Response.ts +1 -1
- package/model/listReverseEtlModelsOutput.ts +1 -1
- package/model/listRoles200Response.ts +1 -1
- package/model/listRolesV1Output.ts +1 -1
- package/model/listRulesFromTrackingPlan200Response.ts +1 -1
- package/model/listRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSchemaSettingsInSource200Response.ts +1 -1
- package/model/listSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSpace200Response.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSpaceAlphaOutput.ts +1 -1
- package/model/listSources200Response.ts +1 -1
- package/model/listSources200Response1.ts +1 -1
- package/model/listSourcesAlphaOutput.ts +1 -1
- package/model/listSourcesFromTrackingPlan200Response.ts +1 -1
- package/model/listSourcesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSourcesV1Output.ts +1 -1
- package/model/listSubscriptionsFromDestination200Response.ts +1 -1
- package/model/listSubscriptionsFromDestinationAlphaOutput.ts +1 -1
- package/model/listSuppressions200Response.ts +1 -1
- package/model/listSuppressionsV1Output.ts +1 -1
- package/model/listSyncsFromWarehouse200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSyncsFromWarehouseV1Output.ts +1 -1
- package/model/listTrackingPlans200Response.ts +1 -1
- package/model/listTrackingPlansV1Output.ts +1 -1
- package/model/listTransformations200Response.ts +1 -1
- package/model/listTransformationsBetaInput.ts +1 -1
- package/model/listTransformationsBetaOutput.ts +1 -1
- package/model/listTransformationsV1Output.ts +1 -1
- package/model/listUserGroups200Response.ts +1 -1
- package/model/listUserGroupsFromUser200Response.ts +1 -1
- package/model/listUserGroupsFromUserV1Output.ts +1 -1
- package/model/listUserGroupsV1Output.ts +1 -1
- package/model/listUsers200Response.ts +1 -1
- package/model/listUsersFromUserGroup200Response.ts +1 -1
- package/model/listUsersFromUserGroupV1Output.ts +1 -1
- package/model/listUsersV1Output.ts +1 -1
- package/model/listWarehouses200Response.ts +1 -1
- package/model/listWarehousesV1Output.ts +1 -1
- package/model/listWorkspaceRegulations200Response.ts +1 -1
- package/model/listWorkspaceRegulationsV1Output.ts +1 -1
- package/model/logos.ts +1 -1
- package/model/logos1.ts +1 -1
- package/model/logos2.ts +1 -1
- package/model/logosBeta.ts +1 -1
- package/model/messageSubscriptionResponse.ts +1 -1
- package/model/messageSubscriptionResponseError.ts +1 -1
- package/model/messagesSubscriptionRequest.ts +1 -1
- package/model/metadata.ts +1 -1
- package/model/metadata1.ts +1 -1
- package/model/metadata2.ts +1 -1
- package/model/metricBeta.ts +1 -1
- package/model/minimalUserGroupV1.ts +1 -1
- package/model/minimalUserV1.ts +1 -1
- package/model/models.ts +51 -0
- package/model/mtuSnapshotV1.ts +1 -1
- package/model/pagination.ts +1 -1
- package/model/pagination1.ts +1 -1
- package/model/paginationInput.ts +1 -1
- package/model/paginationOutput.ts +1 -1
- package/model/permissionInputV1.ts +1 -1
- package/model/permissionResourceV1.ts +1 -1
- package/model/permissionV1.ts +1 -1
- package/model/previewDestinationFilter200Response.ts +1 -1
- package/model/previewDestinationFilterV1.ts +1 -1
- package/model/previewDestinationFilterV1Input.ts +1 -1
- package/model/previewDestinationFilterV1Output.ts +1 -1
- package/model/profilesWarehouse.ts +1 -1
- package/model/profilesWarehouse1.ts +1 -1
- package/model/profilesWarehouseAlpha.ts +1 -1
- package/model/propertyRenameBeta.ts +1 -1
- package/model/propertyRenameV1.ts +1 -1
- package/model/propertyValueTransformationBeta.ts +1 -1
- package/model/propertyValueTransformationV1.ts +1 -1
- package/model/query.ts +1 -1
- package/model/regulation.ts +1 -1
- package/model/regulationListEntryV1.ts +1 -1
- package/model/removeFilterFromDestination200Response.ts +1 -1
- package/model/removeFilterFromDestinationV1Output.ts +1 -1
- package/model/removeProfilesWarehouseFromSpace200Response.ts +1 -1
- package/model/removeProfilesWarehouseFromSpaceAlphaOutput.ts +1 -1
- package/model/removeRuleV1.ts +1 -1
- package/model/removeRulesFromTrackingPlan200Response.ts +1 -1
- package/model/removeRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSourceConnectionFromWarehouse200Response.ts +1 -1
- package/model/removeSourceConnectionFromWarehouseV1Output.ts +1 -1
- package/model/removeSourceFromTrackingPlan200Response.ts +1 -1
- package/model/removeSourceFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSubscriptionFromDestination200Response.ts +1 -1
- package/model/removeSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/removeUsersFromUserGroup200Response.ts +1 -1
- package/model/removeUsersFromUserGroupV1Output.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +1 -1
- package/model/replaceLabelsInSource200Response.ts +1 -1
- package/model/replaceLabelsInSource200Response1.ts +1 -1
- package/model/replaceLabelsInSourceAlphaInput.ts +1 -1
- package/model/replaceLabelsInSourceAlphaOutput.ts +1 -1
- package/model/replaceLabelsInSourceV1Input.ts +1 -1
- package/model/replaceLabelsInSourceV1Output.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +1 -1
- package/model/replacePermissionsForUser200Response.ts +1 -1
- package/model/replacePermissionsForUserGroup200Response.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Input.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Output.ts +1 -1
- package/model/replacePermissionsForUserV1Input.ts +1 -1
- package/model/replacePermissionsForUserV1Output.ts +1 -1
- package/model/replaceRulesInTrackingPlan200Response.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Input.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Output.ts +1 -1
- package/model/replaceUsersInUserGroup200Response.ts +1 -1
- package/model/replaceUsersInUserGroupV1Input.ts +1 -1
- package/model/replaceUsersInUserGroupV1Output.ts +1 -1
- package/model/requestError.ts +1 -1
- package/model/requestErrorEnvelope.ts +1 -1
- package/model/resourceV1.ts +1 -1
- package/model/restoreFunctionVersion200Response.ts +1 -1
- package/model/restoreFunctionVersionAlphaInput.ts +1 -1
- package/model/restoreFunctionVersionAlphaOutput.ts +1 -1
- package/model/reverseEtlModel.ts +1 -1
- package/model/reverseEtlModel1.ts +1 -1
- package/model/roleV1.ts +1 -1
- package/model/ruleV1.ts +1 -1
- package/model/schedule.ts +1 -1
- package/model/schedule1.ts +1 -1
- package/model/schedule2.ts +1 -1
- package/model/settings.ts +1 -1
- package/model/settings1.ts +1 -1
- package/model/source.ts +1 -1
- package/model/source1.ts +1 -1
- package/model/source2.ts +1 -1
- package/model/source3.ts +1 -1
- package/model/source4.ts +1 -1
- package/model/source5.ts +1 -1
- package/model/source6.ts +1 -1
- package/model/sourceAPICallSnapshotV1.ts +1 -1
- package/model/sourceAlpha.ts +1 -1
- package/model/sourceEventVolumeDatapointV1.ts +1 -1
- package/model/sourceEventVolumeV1.ts +1 -1
- package/model/sourceMetadata.ts +1 -1
- package/model/sourceMetadataV1.ts +1 -1
- package/model/sourceSettingsOutputV1.ts +1 -1
- package/model/sourceV1.ts +1 -1
- package/model/space.ts +1 -1
- package/model/spaceWarehouseSchemaOverride.ts +1 -1
- package/model/spaceWarehouseSelectiveSyncItemAlpha.ts +1 -1
- package/model/streamStatusV1.ts +1 -1
- package/model/subscription.ts +1 -1
- package/model/supportedFeatures.ts +1 -1
- package/model/supportedMethods.ts +1 -1
- package/model/supportedPlatforms.ts +1 -1
- package/model/suppressedInner.ts +1 -1
- package/model/syncNoticeV1.ts +1 -1
- package/model/syncV1.ts +1 -1
- package/model/track.ts +1 -1
- package/model/trackSourceSettingsV1.ts +1 -1
- package/model/trackingPlan.ts +1 -1
- package/model/trackingPlan1.ts +1 -1
- package/model/trackingPlanV1.ts +1 -1
- package/model/transformation.ts +1 -1
- package/model/transformation1.ts +1 -1
- package/model/transformation2.ts +1 -1
- package/model/transformation3.ts +1 -1
- package/model/transformation4.ts +1 -1
- package/model/transformation5.ts +1 -1
- package/model/transformationBeta.ts +1 -1
- package/model/transformationV1.ts +1 -1
- package/model/updateDestination200Response.ts +1 -1
- package/model/updateDestinationV1Input.ts +1 -1
- package/model/updateDestinationV1Output.ts +1 -1
- package/model/updateFilterForDestination200Response.ts +1 -1
- package/model/updateFilterForDestinationV1Input.ts +1 -1
- package/model/updateFilterForDestinationV1Output.ts +1 -1
- package/model/updateFunction200Response.ts +1 -1
- package/model/updateFunctionV1Input.ts +1 -1
- package/model/updateFunctionV1Output.ts +1 -1
- package/model/updateGroupSubscriptionStatusResponse.ts +1 -1
- package/model/updateInsertFunctionInstance200Response.ts +36 -0
- package/model/updateInsertFunctionInstanceAlphaInput.ts +59 -0
- package/model/updateInsertFunctionInstanceAlphaOutput.ts +39 -0
- package/model/updateProfilesWarehouseForSpaceWarehouse200Response.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaInput.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaOutput.ts +1 -1
- package/model/updateReverseEtlModel200Response.ts +1 -1
- package/model/updateReverseEtlModelInput.ts +1 -1
- package/model/updateReverseEtlModelOutput.ts +1 -1
- package/model/updateRulesInTrackingPlan200Response.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Input.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Output.ts +1 -1
- package/model/updateSchemaSettingsInSource200Response.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Input.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/updateSelectiveSyncForWarehouse200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpace200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaInput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaOutput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
- package/model/updateSource200Response.ts +1 -1
- package/model/updateSource200Response1.ts +1 -1
- package/model/updateSourceAlphaInput.ts +1 -1
- package/model/updateSourceAlphaOutput.ts +1 -1
- package/model/updateSourceV1Input.ts +1 -1
- package/model/updateSourceV1Output.ts +1 -1
- package/model/updateSubscriptionForDestination200Response.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaInput.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaOutput.ts +1 -1
- package/model/updateTrackingPlan200Response.ts +1 -1
- package/model/updateTrackingPlanV1Input.ts +1 -1
- package/model/updateTrackingPlanV1Output.ts +1 -1
- package/model/updateTransformation200Response.ts +1 -1
- package/model/updateTransformationBetaInput.ts +1 -1
- package/model/updateTransformationBetaOutput.ts +1 -1
- package/model/updateTransformationV1Input.ts +1 -1
- package/model/updateTransformationV1Output.ts +1 -1
- package/model/updateUserGroup200Response.ts +1 -1
- package/model/updateUserGroupV1Input.ts +1 -1
- package/model/updateUserGroupV1Output.ts +1 -1
- package/model/updateWarehouse200Response.ts +1 -1
- package/model/updateWarehouseV1Input.ts +1 -1
- package/model/updateWarehouseV1Output.ts +1 -1
- package/model/upsertRuleV1.ts +1 -1
- package/model/user.ts +1 -1
- package/model/userGroup.ts +1 -1
- package/model/userGroup1.ts +1 -1
- package/model/userGroup2.ts +1 -1
- package/model/userGroup3.ts +1 -1
- package/model/userGroupV1.ts +1 -1
- package/model/userV1.ts +1 -1
- package/model/usersPerSourceSnapshotV1.ts +1 -1
- package/model/version.ts +1 -1
- package/model/version1.ts +1 -1
- package/model/warehouse.ts +1 -1
- package/model/warehouse1.ts +1 -1
- package/model/warehouse2.ts +1 -1
- package/model/warehouseAdvancedSyncV1.ts +1 -1
- package/model/warehouseMetadata.ts +1 -1
- package/model/warehouseMetadataV1.ts +1 -1
- package/model/warehouseSelectiveSyncItemV1.ts +1 -1
- package/model/warehouseSyncOverrideV1.ts +1 -1
- package/model/warehouseV1.ts +1 -1
- package/model/workspace.ts +1 -1
- package/model/workspaceV1.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ All endpoints in the API follow REST conventions and use standard HTTP methods.
|
|
|
10
10
|
|
|
11
11
|
See the next sections for more information on how to use the Segment Public API TypeScript SDK.
|
|
12
12
|
|
|
13
|
-
Latest API and SDK version: 36.1.
|
|
13
|
+
Latest API and SDK version: 36.1.1
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
package/api/aPICallsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.1.
|
|
5
|
+
* The version of the OpenAPI document: 36.1.1
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/apis.ts
CHANGED
|
@@ -150,7 +150,7 @@ export function configureApis(
|
|
|
150
150
|
|
|
151
151
|
for (const k of Object.keys(apis)) {
|
|
152
152
|
const key = k as keyof typeof apis;
|
|
153
|
-
headers['User-Agent'] = 'Public API SDK 36.1.
|
|
153
|
+
headers['User-Agent'] = 'Public API SDK 36.1.1 (TypeScript)';
|
|
154
154
|
apis[key].accessToken = token;
|
|
155
155
|
apis[key].defaultHeaders = headers;
|
|
156
156
|
}
|
|
@@ -197,7 +197,7 @@ export function configureEuApis(
|
|
|
197
197
|
|
|
198
198
|
for (const k of Object.keys(apis)) {
|
|
199
199
|
const key = k as keyof typeof apis;
|
|
200
|
-
headers['User-Agent'] = 'Public API SDK 36.1.
|
|
200
|
+
headers['User-Agent'] = 'Public API SDK 36.1.1 (TypeScript)';
|
|
201
201
|
apis[key].accessToken = token;
|
|
202
202
|
apis[key].defaultHeaders = headers;
|
|
203
203
|
}
|
package/api/auditTrailApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.1.
|
|
5
|
+
* The version of the OpenAPI document: 36.1.1
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/catalogApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.1.
|
|
5
|
+
* The version of the OpenAPI document: 36.1.1
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.1.
|
|
5
|
+
* The version of the OpenAPI document: 36.1.1
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.1.
|
|
5
|
+
* The version of the OpenAPI document: 36.1.1
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/destinationsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.1.
|
|
5
|
+
* The version of the OpenAPI document: 36.1.1
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/edgeFunctionsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.1.
|
|
5
|
+
* The version of the OpenAPI document: 36.1.1
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/eventsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.1.
|
|
5
|
+
* The version of the OpenAPI document: 36.1.1
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/functionsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
3
|
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.1.
|
|
5
|
+
* The version of the OpenAPI document: 36.1.1
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,17 +17,23 @@ import http from 'http';
|
|
|
17
17
|
import { CreateFunction200Response } from '../model/createFunction200Response';
|
|
18
18
|
import { CreateFunctionDeployment200Response } from '../model/createFunctionDeployment200Response';
|
|
19
19
|
import { CreateFunctionV1Input } from '../model/createFunctionV1Input';
|
|
20
|
+
import { CreateInsertFunctionInstance200Response } from '../model/createInsertFunctionInstance200Response';
|
|
21
|
+
import { CreateInsertFunctionInstanceAlphaInput } from '../model/createInsertFunctionInstanceAlphaInput';
|
|
20
22
|
import { DeleteFunction200Response } from '../model/deleteFunction200Response';
|
|
23
|
+
import { DeleteInsertFunctionInstance200Response } from '../model/deleteInsertFunctionInstance200Response';
|
|
21
24
|
import { GetFunction200Response } from '../model/getFunction200Response';
|
|
22
25
|
import { GetFunctionVersion200Response } from '../model/getFunctionVersion200Response';
|
|
23
26
|
import { ListFunctionVersions200Response } from '../model/listFunctionVersions200Response';
|
|
24
27
|
import { ListFunctions200Response } from '../model/listFunctions200Response';
|
|
28
|
+
import { ListInsertFunctionInstances200Response } from '../model/listInsertFunctionInstances200Response';
|
|
25
29
|
import { PaginationInput } from '../model/paginationInput';
|
|
26
30
|
import { RequestErrorEnvelope } from '../model/requestErrorEnvelope';
|
|
27
31
|
import { RestoreFunctionVersion200Response } from '../model/restoreFunctionVersion200Response';
|
|
28
32
|
import { RestoreFunctionVersionAlphaInput } from '../model/restoreFunctionVersionAlphaInput';
|
|
29
33
|
import { UpdateFunction200Response } from '../model/updateFunction200Response';
|
|
30
34
|
import { UpdateFunctionV1Input } from '../model/updateFunctionV1Input';
|
|
35
|
+
import { UpdateInsertFunctionInstance200Response } from '../model/updateInsertFunctionInstance200Response';
|
|
36
|
+
import { UpdateInsertFunctionInstanceAlphaInput } from '../model/updateInsertFunctionInstanceAlphaInput';
|
|
31
37
|
|
|
32
38
|
import {
|
|
33
39
|
ObjectSerializer,
|
|
@@ -357,6 +363,125 @@ export class FunctionsApi {
|
|
|
357
363
|
});
|
|
358
364
|
});
|
|
359
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Creates an insert Function instance connected to the given Destination. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
368
|
+
* @summary Create Insert Function Instance
|
|
369
|
+
* @param CreateInsertFunctionInstanceAlphaInput
|
|
370
|
+
*/
|
|
371
|
+
public async createInsertFunctionInstance(
|
|
372
|
+
CreateInsertFunctionInstanceAlphaInput: CreateInsertFunctionInstanceAlphaInput,
|
|
373
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
374
|
+
): Promise<{
|
|
375
|
+
response: http.IncomingMessage;
|
|
376
|
+
body: CreateInsertFunctionInstance200Response;
|
|
377
|
+
}> {
|
|
378
|
+
const localVarPath = this.basePath + '/insert-function-instances';
|
|
379
|
+
let localVarQueryParameters: any = {};
|
|
380
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
381
|
+
{},
|
|
382
|
+
this._defaultHeaders
|
|
383
|
+
);
|
|
384
|
+
const produces = [
|
|
385
|
+
'application/vnd.segment.v1alpha+json',
|
|
386
|
+
'application/json',
|
|
387
|
+
];
|
|
388
|
+
// give precedence to 'application/json'
|
|
389
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
390
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
391
|
+
} else {
|
|
392
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
393
|
+
}
|
|
394
|
+
let localVarFormParams: any = {};
|
|
395
|
+
|
|
396
|
+
// verify required parameter 'CreateInsertFunctionInstanceAlphaInput' is not null or undefined
|
|
397
|
+
if (
|
|
398
|
+
CreateInsertFunctionInstanceAlphaInput === null ||
|
|
399
|
+
CreateInsertFunctionInstanceAlphaInput === undefined
|
|
400
|
+
) {
|
|
401
|
+
throw new Error(
|
|
402
|
+
'Required parameter CreateInsertFunctionInstanceAlphaInput was null or undefined when calling createInsertFunctionInstance.'
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
407
|
+
|
|
408
|
+
let localVarUseFormData = false;
|
|
409
|
+
|
|
410
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
411
|
+
method: 'POST',
|
|
412
|
+
qs: localVarQueryParameters,
|
|
413
|
+
headers: localVarHeaderParams,
|
|
414
|
+
uri: localVarPath,
|
|
415
|
+
useQuerystring: this._useQuerystring,
|
|
416
|
+
json: true,
|
|
417
|
+
body: ObjectSerializer.serialize(
|
|
418
|
+
CreateInsertFunctionInstanceAlphaInput,
|
|
419
|
+
'CreateInsertFunctionInstanceAlphaInput'
|
|
420
|
+
),
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
let authenticationPromise = Promise.resolve();
|
|
424
|
+
if (this.authentications.token.accessToken) {
|
|
425
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
426
|
+
this.authentications.token.applyToRequest(
|
|
427
|
+
localVarRequestOptions
|
|
428
|
+
)
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
432
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
433
|
+
);
|
|
434
|
+
|
|
435
|
+
let interceptorPromise = authenticationPromise;
|
|
436
|
+
for (const interceptor of this.interceptors) {
|
|
437
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
438
|
+
interceptor(localVarRequestOptions)
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
return interceptorPromise.then(() => {
|
|
443
|
+
if (Object.keys(localVarFormParams).length) {
|
|
444
|
+
if (localVarUseFormData) {
|
|
445
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
446
|
+
} else {
|
|
447
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
return new Promise<{
|
|
451
|
+
response: http.IncomingMessage;
|
|
452
|
+
body: CreateInsertFunctionInstance200Response;
|
|
453
|
+
}>((resolve, reject) => {
|
|
454
|
+
localVarRequest(
|
|
455
|
+
localVarRequestOptions,
|
|
456
|
+
(error, response, body) => {
|
|
457
|
+
if (error) {
|
|
458
|
+
reject(error);
|
|
459
|
+
} else {
|
|
460
|
+
if (
|
|
461
|
+
response.statusCode &&
|
|
462
|
+
response.statusCode >= 200 &&
|
|
463
|
+
response.statusCode <= 299
|
|
464
|
+
) {
|
|
465
|
+
body = ObjectSerializer.deserialize(
|
|
466
|
+
body,
|
|
467
|
+
'CreateInsertFunctionInstance200Response'
|
|
468
|
+
);
|
|
469
|
+
resolve({ response: response, body: body });
|
|
470
|
+
} else {
|
|
471
|
+
reject(
|
|
472
|
+
new HttpError(
|
|
473
|
+
response,
|
|
474
|
+
body,
|
|
475
|
+
response.statusCode
|
|
476
|
+
)
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
);
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
}
|
|
360
485
|
/**
|
|
361
486
|
* Deletes a Function. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
362
487
|
* @summary Delete Function
|
|
@@ -476,6 +601,123 @@ export class FunctionsApi {
|
|
|
476
601
|
});
|
|
477
602
|
});
|
|
478
603
|
}
|
|
604
|
+
/**
|
|
605
|
+
* Deletes an insert Function instance. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
606
|
+
* @summary Delete Insert Function Instance
|
|
607
|
+
* @param instanceId
|
|
608
|
+
*/
|
|
609
|
+
public async deleteInsertFunctionInstance(
|
|
610
|
+
instanceId: string,
|
|
611
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
612
|
+
): Promise<{
|
|
613
|
+
response: http.IncomingMessage;
|
|
614
|
+
body: DeleteInsertFunctionInstance200Response;
|
|
615
|
+
}> {
|
|
616
|
+
const localVarPath =
|
|
617
|
+
this.basePath +
|
|
618
|
+
'/insert-function-instances/{instanceId}'.replace(
|
|
619
|
+
'{' + 'instanceId' + '}',
|
|
620
|
+
encodeURIComponent(String(instanceId))
|
|
621
|
+
);
|
|
622
|
+
let localVarQueryParameters: any = {};
|
|
623
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
624
|
+
{},
|
|
625
|
+
this._defaultHeaders
|
|
626
|
+
);
|
|
627
|
+
const produces = [
|
|
628
|
+
'application/vnd.segment.v1alpha+json',
|
|
629
|
+
'application/json',
|
|
630
|
+
];
|
|
631
|
+
// give precedence to 'application/json'
|
|
632
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
633
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
634
|
+
} else {
|
|
635
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
636
|
+
}
|
|
637
|
+
let localVarFormParams: any = {};
|
|
638
|
+
|
|
639
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
640
|
+
if (instanceId === null || instanceId === undefined) {
|
|
641
|
+
throw new Error(
|
|
642
|
+
'Required parameter instanceId was null or undefined when calling deleteInsertFunctionInstance.'
|
|
643
|
+
);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
647
|
+
|
|
648
|
+
let localVarUseFormData = false;
|
|
649
|
+
|
|
650
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
651
|
+
method: 'DELETE',
|
|
652
|
+
qs: localVarQueryParameters,
|
|
653
|
+
headers: localVarHeaderParams,
|
|
654
|
+
uri: localVarPath,
|
|
655
|
+
useQuerystring: this._useQuerystring,
|
|
656
|
+
json: true,
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
let authenticationPromise = Promise.resolve();
|
|
660
|
+
if (this.authentications.token.accessToken) {
|
|
661
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
662
|
+
this.authentications.token.applyToRequest(
|
|
663
|
+
localVarRequestOptions
|
|
664
|
+
)
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
668
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
669
|
+
);
|
|
670
|
+
|
|
671
|
+
let interceptorPromise = authenticationPromise;
|
|
672
|
+
for (const interceptor of this.interceptors) {
|
|
673
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
674
|
+
interceptor(localVarRequestOptions)
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
return interceptorPromise.then(() => {
|
|
679
|
+
if (Object.keys(localVarFormParams).length) {
|
|
680
|
+
if (localVarUseFormData) {
|
|
681
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
682
|
+
} else {
|
|
683
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
return new Promise<{
|
|
687
|
+
response: http.IncomingMessage;
|
|
688
|
+
body: DeleteInsertFunctionInstance200Response;
|
|
689
|
+
}>((resolve, reject) => {
|
|
690
|
+
localVarRequest(
|
|
691
|
+
localVarRequestOptions,
|
|
692
|
+
(error, response, body) => {
|
|
693
|
+
if (error) {
|
|
694
|
+
reject(error);
|
|
695
|
+
} else {
|
|
696
|
+
if (
|
|
697
|
+
response.statusCode &&
|
|
698
|
+
response.statusCode >= 200 &&
|
|
699
|
+
response.statusCode <= 299
|
|
700
|
+
) {
|
|
701
|
+
body = ObjectSerializer.deserialize(
|
|
702
|
+
body,
|
|
703
|
+
'DeleteInsertFunctionInstance200Response'
|
|
704
|
+
);
|
|
705
|
+
resolve({ response: response, body: body });
|
|
706
|
+
} else {
|
|
707
|
+
reject(
|
|
708
|
+
new HttpError(
|
|
709
|
+
response,
|
|
710
|
+
body,
|
|
711
|
+
response.statusCode
|
|
712
|
+
)
|
|
713
|
+
);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
);
|
|
718
|
+
});
|
|
719
|
+
});
|
|
720
|
+
}
|
|
479
721
|
/**
|
|
480
722
|
* Gets a Function. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
481
723
|
* @summary Get Function
|
|
@@ -997,6 +1239,141 @@ export class FunctionsApi {
|
|
|
997
1239
|
});
|
|
998
1240
|
});
|
|
999
1241
|
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Lists all insert Function instances connected to the given insert Function. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
1244
|
+
* @summary List Insert Function Instances
|
|
1245
|
+
* @param pagination Pagination parameters. This parameter exists in alpha.
|
|
1246
|
+
* @param functionId The insert Function class id to lookup. This parameter exists in alpha.
|
|
1247
|
+
*/
|
|
1248
|
+
public async listInsertFunctionInstances(
|
|
1249
|
+
pagination: PaginationInput,
|
|
1250
|
+
functionId: string,
|
|
1251
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1252
|
+
): Promise<{
|
|
1253
|
+
response: http.IncomingMessage;
|
|
1254
|
+
body: ListInsertFunctionInstances200Response;
|
|
1255
|
+
}> {
|
|
1256
|
+
const localVarPath = this.basePath + '/insert-function-instances';
|
|
1257
|
+
let localVarQueryParameters: any = {};
|
|
1258
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1259
|
+
{},
|
|
1260
|
+
this._defaultHeaders
|
|
1261
|
+
);
|
|
1262
|
+
const produces = [
|
|
1263
|
+
'application/vnd.segment.v1alpha+json',
|
|
1264
|
+
'application/json',
|
|
1265
|
+
];
|
|
1266
|
+
// give precedence to 'application/json'
|
|
1267
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1268
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1269
|
+
} else {
|
|
1270
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1271
|
+
}
|
|
1272
|
+
let localVarFormParams: any = {};
|
|
1273
|
+
|
|
1274
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
1275
|
+
if (pagination === null || pagination === undefined) {
|
|
1276
|
+
throw new Error(
|
|
1277
|
+
'Required parameter pagination was null or undefined when calling listInsertFunctionInstances.'
|
|
1278
|
+
);
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
// verify required parameter 'functionId' is not null or undefined
|
|
1282
|
+
if (functionId === null || functionId === undefined) {
|
|
1283
|
+
throw new Error(
|
|
1284
|
+
'Required parameter functionId was null or undefined when calling listInsertFunctionInstances.'
|
|
1285
|
+
);
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
if (pagination !== undefined) {
|
|
1289
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
1290
|
+
pagination,
|
|
1291
|
+
'PaginationInput'
|
|
1292
|
+
);
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
if (functionId !== undefined) {
|
|
1296
|
+
localVarQueryParameters['functionId'] = ObjectSerializer.serialize(
|
|
1297
|
+
functionId,
|
|
1298
|
+
'string'
|
|
1299
|
+
);
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1303
|
+
|
|
1304
|
+
let localVarUseFormData = false;
|
|
1305
|
+
|
|
1306
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1307
|
+
method: 'GET',
|
|
1308
|
+
qs: localVarQueryParameters,
|
|
1309
|
+
headers: localVarHeaderParams,
|
|
1310
|
+
uri: localVarPath,
|
|
1311
|
+
useQuerystring: this._useQuerystring,
|
|
1312
|
+
json: true,
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
let authenticationPromise = Promise.resolve();
|
|
1316
|
+
if (this.authentications.token.accessToken) {
|
|
1317
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1318
|
+
this.authentications.token.applyToRequest(
|
|
1319
|
+
localVarRequestOptions
|
|
1320
|
+
)
|
|
1321
|
+
);
|
|
1322
|
+
}
|
|
1323
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1324
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1325
|
+
);
|
|
1326
|
+
|
|
1327
|
+
let interceptorPromise = authenticationPromise;
|
|
1328
|
+
for (const interceptor of this.interceptors) {
|
|
1329
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1330
|
+
interceptor(localVarRequestOptions)
|
|
1331
|
+
);
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
return interceptorPromise.then(() => {
|
|
1335
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1336
|
+
if (localVarUseFormData) {
|
|
1337
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1338
|
+
} else {
|
|
1339
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
return new Promise<{
|
|
1343
|
+
response: http.IncomingMessage;
|
|
1344
|
+
body: ListInsertFunctionInstances200Response;
|
|
1345
|
+
}>((resolve, reject) => {
|
|
1346
|
+
localVarRequest(
|
|
1347
|
+
localVarRequestOptions,
|
|
1348
|
+
(error, response, body) => {
|
|
1349
|
+
if (error) {
|
|
1350
|
+
reject(error);
|
|
1351
|
+
} else {
|
|
1352
|
+
if (
|
|
1353
|
+
response.statusCode &&
|
|
1354
|
+
response.statusCode >= 200 &&
|
|
1355
|
+
response.statusCode <= 299
|
|
1356
|
+
) {
|
|
1357
|
+
body = ObjectSerializer.deserialize(
|
|
1358
|
+
body,
|
|
1359
|
+
'ListInsertFunctionInstances200Response'
|
|
1360
|
+
);
|
|
1361
|
+
resolve({ response: response, body: body });
|
|
1362
|
+
} else {
|
|
1363
|
+
reject(
|
|
1364
|
+
new HttpError(
|
|
1365
|
+
response,
|
|
1366
|
+
body,
|
|
1367
|
+
response.statusCode
|
|
1368
|
+
)
|
|
1369
|
+
);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
);
|
|
1374
|
+
});
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1000
1377
|
/**
|
|
1001
1378
|
* Restore an old Function version as the latest version. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
1002
1379
|
* @summary Restore Function Version
|
|
@@ -1265,4 +1642,137 @@ export class FunctionsApi {
|
|
|
1265
1642
|
});
|
|
1266
1643
|
});
|
|
1267
1644
|
}
|
|
1645
|
+
/**
|
|
1646
|
+
* Updates an insert Function instance connected to the given Destination. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
1647
|
+
* @summary Update Insert Function Instance
|
|
1648
|
+
* @param instanceId
|
|
1649
|
+
* @param UpdateInsertFunctionInstanceAlphaInput
|
|
1650
|
+
*/
|
|
1651
|
+
public async updateInsertFunctionInstance(
|
|
1652
|
+
instanceId: string,
|
|
1653
|
+
UpdateInsertFunctionInstanceAlphaInput: UpdateInsertFunctionInstanceAlphaInput,
|
|
1654
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1655
|
+
): Promise<{
|
|
1656
|
+
response: http.IncomingMessage;
|
|
1657
|
+
body: UpdateInsertFunctionInstance200Response;
|
|
1658
|
+
}> {
|
|
1659
|
+
const localVarPath =
|
|
1660
|
+
this.basePath +
|
|
1661
|
+
'/insert-function-instances/{instanceId}'.replace(
|
|
1662
|
+
'{' + 'instanceId' + '}',
|
|
1663
|
+
encodeURIComponent(String(instanceId))
|
|
1664
|
+
);
|
|
1665
|
+
let localVarQueryParameters: any = {};
|
|
1666
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1667
|
+
{},
|
|
1668
|
+
this._defaultHeaders
|
|
1669
|
+
);
|
|
1670
|
+
const produces = [
|
|
1671
|
+
'application/vnd.segment.v1alpha+json',
|
|
1672
|
+
'application/json',
|
|
1673
|
+
];
|
|
1674
|
+
// give precedence to 'application/json'
|
|
1675
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1676
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1677
|
+
} else {
|
|
1678
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1679
|
+
}
|
|
1680
|
+
let localVarFormParams: any = {};
|
|
1681
|
+
|
|
1682
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
1683
|
+
if (instanceId === null || instanceId === undefined) {
|
|
1684
|
+
throw new Error(
|
|
1685
|
+
'Required parameter instanceId was null or undefined when calling updateInsertFunctionInstance.'
|
|
1686
|
+
);
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
// verify required parameter 'UpdateInsertFunctionInstanceAlphaInput' is not null or undefined
|
|
1690
|
+
if (
|
|
1691
|
+
UpdateInsertFunctionInstanceAlphaInput === null ||
|
|
1692
|
+
UpdateInsertFunctionInstanceAlphaInput === undefined
|
|
1693
|
+
) {
|
|
1694
|
+
throw new Error(
|
|
1695
|
+
'Required parameter UpdateInsertFunctionInstanceAlphaInput was null or undefined when calling updateInsertFunctionInstance.'
|
|
1696
|
+
);
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1700
|
+
|
|
1701
|
+
let localVarUseFormData = false;
|
|
1702
|
+
|
|
1703
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1704
|
+
method: 'PATCH',
|
|
1705
|
+
qs: localVarQueryParameters,
|
|
1706
|
+
headers: localVarHeaderParams,
|
|
1707
|
+
uri: localVarPath,
|
|
1708
|
+
useQuerystring: this._useQuerystring,
|
|
1709
|
+
json: true,
|
|
1710
|
+
body: ObjectSerializer.serialize(
|
|
1711
|
+
UpdateInsertFunctionInstanceAlphaInput,
|
|
1712
|
+
'UpdateInsertFunctionInstanceAlphaInput'
|
|
1713
|
+
),
|
|
1714
|
+
};
|
|
1715
|
+
|
|
1716
|
+
let authenticationPromise = Promise.resolve();
|
|
1717
|
+
if (this.authentications.token.accessToken) {
|
|
1718
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1719
|
+
this.authentications.token.applyToRequest(
|
|
1720
|
+
localVarRequestOptions
|
|
1721
|
+
)
|
|
1722
|
+
);
|
|
1723
|
+
}
|
|
1724
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1725
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1726
|
+
);
|
|
1727
|
+
|
|
1728
|
+
let interceptorPromise = authenticationPromise;
|
|
1729
|
+
for (const interceptor of this.interceptors) {
|
|
1730
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1731
|
+
interceptor(localVarRequestOptions)
|
|
1732
|
+
);
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
return interceptorPromise.then(() => {
|
|
1736
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1737
|
+
if (localVarUseFormData) {
|
|
1738
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1739
|
+
} else {
|
|
1740
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
return new Promise<{
|
|
1744
|
+
response: http.IncomingMessage;
|
|
1745
|
+
body: UpdateInsertFunctionInstance200Response;
|
|
1746
|
+
}>((resolve, reject) => {
|
|
1747
|
+
localVarRequest(
|
|
1748
|
+
localVarRequestOptions,
|
|
1749
|
+
(error, response, body) => {
|
|
1750
|
+
if (error) {
|
|
1751
|
+
reject(error);
|
|
1752
|
+
} else {
|
|
1753
|
+
if (
|
|
1754
|
+
response.statusCode &&
|
|
1755
|
+
response.statusCode >= 200 &&
|
|
1756
|
+
response.statusCode <= 299
|
|
1757
|
+
) {
|
|
1758
|
+
body = ObjectSerializer.deserialize(
|
|
1759
|
+
body,
|
|
1760
|
+
'UpdateInsertFunctionInstance200Response'
|
|
1761
|
+
);
|
|
1762
|
+
resolve({ response: response, body: body });
|
|
1763
|
+
} else {
|
|
1764
|
+
reject(
|
|
1765
|
+
new HttpError(
|
|
1766
|
+
response,
|
|
1767
|
+
body,
|
|
1768
|
+
response.statusCode
|
|
1769
|
+
)
|
|
1770
|
+
);
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
);
|
|
1775
|
+
});
|
|
1776
|
+
});
|
|
1777
|
+
}
|
|
1268
1778
|
}
|