fusio-sdk 3.0.3 → 3.0.4
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/dist/src/Client.d.ts +4 -6
- package/dist/src/Client.js +10 -12
- package/dist/src/generated/backend/AccountTag.d.ts +26 -0
- package/dist/src/generated/backend/AccountTag.js +86 -0
- package/dist/src/generated/backend/ActionTag.d.ts +56 -0
- package/dist/src/generated/backend/ActionTag.js +220 -0
- package/dist/src/generated/backend/AppTag.d.ts +54 -0
- package/dist/src/generated/backend/AppTag.js +222 -0
- package/dist/src/generated/backend/AuditTag.d.ts +19 -0
- package/dist/src/generated/backend/AuditTag.js +61 -0
- package/dist/src/generated/backend/CategoryTag.d.ts +37 -0
- package/dist/src/generated/backend/CategoryTag.js +142 -0
- package/dist/src/generated/backend/Client.d.ts +52 -521
- package/dist/src/generated/backend/Client.js +100 -669
- package/dist/src/generated/backend/ConfigTag.d.ts +26 -0
- package/dist/src/generated/backend/ConfigTag.js +89 -0
- package/dist/src/generated/backend/ConnectionTag.d.ts +66 -0
- package/dist/src/generated/backend/ConnectionTag.js +274 -0
- package/dist/src/generated/backend/CronjobTag.d.ts +37 -0
- package/dist/src/generated/backend/CronjobTag.js +142 -0
- package/dist/src/generated/backend/Dashboard.d.ts +3 -3
- package/dist/src/generated/backend/DashboardTag.d.ts +13 -0
- package/dist/src/generated/backend/DashboardTag.js +34 -0
- package/dist/src/generated/backend/EventTag.d.ts +66 -0
- package/dist/src/generated/backend/EventTag.js +275 -0
- package/dist/src/generated/backend/GeneratorProviderChangelog.d.ts +2 -2
- package/dist/src/generated/backend/GeneratorTag.d.ts +33 -0
- package/dist/src/generated/backend/GeneratorTag.js +117 -0
- package/dist/src/generated/backend/LogTag.d.ts +31 -0
- package/dist/src/generated/backend/LogTag.js +113 -0
- package/dist/src/generated/backend/MarketplaceTag.d.ts +36 -0
- package/dist/src/generated/backend/MarketplaceTag.js +141 -0
- package/dist/src/generated/backend/Message.d.ts +1 -0
- package/dist/src/generated/backend/Operation.d.ts +27 -0
- package/dist/src/generated/backend/{FormQuery.js → Operation.js} +1 -1
- package/dist/src/generated/backend/OperationCollection.d.ts +7 -0
- package/dist/src/generated/backend/OperationCollection.js +5 -0
- package/dist/src/generated/backend/OperationCreate.d.ts +7 -0
- package/dist/src/generated/backend/{CollectionQuery.js → OperationCreate.js} +1 -1
- package/dist/src/generated/backend/OperationParameters.d.ts +6 -0
- package/dist/src/generated/backend/OperationParameters.js +5 -0
- package/dist/src/generated/backend/OperationSchema.d.ts +10 -0
- package/dist/src/generated/{consumer/CollectionQuery.js → backend/OperationSchema.js} +1 -1
- package/dist/src/generated/backend/OperationTag.d.ts +37 -0
- package/dist/src/generated/backend/OperationTag.js +142 -0
- package/dist/src/generated/backend/OperationThrows.d.ts +5 -0
- package/dist/src/generated/backend/{RouteCollection.js → OperationThrows.js} +1 -1
- package/dist/src/generated/backend/OperationUpdate.d.ts +7 -0
- package/dist/src/generated/backend/OperationUpdate.js +5 -0
- package/dist/src/generated/backend/PageTag.d.ts +37 -0
- package/dist/src/generated/backend/PageTag.js +142 -0
- package/dist/src/generated/backend/PlanTag.d.ts +37 -0
- package/dist/src/generated/backend/PlanTag.js +142 -0
- package/dist/src/generated/backend/RateAllocation.d.ts +1 -1
- package/dist/src/generated/backend/RateTag.d.ts +37 -0
- package/dist/src/generated/backend/RateTag.js +142 -0
- package/dist/src/generated/backend/RoleTag.d.ts +37 -0
- package/dist/src/generated/backend/RoleTag.js +142 -0
- package/dist/src/generated/backend/SchemaTag.d.ts +49 -0
- package/dist/src/generated/backend/SchemaTag.js +197 -0
- package/dist/src/generated/backend/Scope.d.ts +2 -2
- package/dist/src/generated/backend/ScopeOperation.d.ts +9 -0
- package/dist/src/generated/backend/ScopeOperation.js +5 -0
- package/dist/src/generated/backend/ScopeTag.d.ts +43 -0
- package/dist/src/generated/backend/ScopeTag.js +167 -0
- package/dist/src/generated/backend/SdkTag.d.ts +20 -0
- package/dist/src/generated/backend/SdkTag.js +60 -0
- package/dist/src/generated/backend/StatisticTag.d.ts +59 -0
- package/dist/src/generated/backend/StatisticTag.js +259 -0
- package/dist/src/generated/backend/TransactionTag.d.ts +19 -0
- package/dist/src/generated/backend/TransactionTag.js +61 -0
- package/dist/src/generated/backend/TrashTag.d.ts +26 -0
- package/dist/src/generated/backend/TrashTag.js +89 -0
- package/dist/src/generated/backend/UserTag.d.ts +37 -0
- package/dist/src/generated/backend/UserTag.js +142 -0
- package/dist/src/generated/consumer/AccountTag.d.ts +81 -0
- package/dist/src/generated/consumer/AccountTag.js +321 -0
- package/dist/src/generated/consumer/AppTag.d.ts +37 -0
- package/dist/src/generated/consumer/AppTag.js +142 -0
- package/dist/src/generated/consumer/Client.d.ts +24 -185
- package/dist/src/generated/consumer/Client.js +44 -237
- package/dist/src/generated/consumer/EventTag.d.ts +13 -0
- package/dist/src/generated/consumer/EventTag.js +34 -0
- package/dist/src/generated/consumer/GrantTag.d.ts +19 -0
- package/dist/src/generated/consumer/GrantTag.js +61 -0
- package/dist/src/generated/consumer/LogTag.d.ts +19 -0
- package/dist/src/generated/consumer/LogTag.js +61 -0
- package/dist/src/generated/consumer/Message.d.ts +1 -0
- package/dist/src/generated/consumer/PageTag.d.ts +19 -0
- package/dist/src/generated/consumer/PageTag.js +61 -0
- package/dist/src/generated/consumer/PaymentTag.d.ts +21 -0
- package/dist/src/generated/consumer/PaymentTag.js +65 -0
- package/dist/src/generated/consumer/PlanTag.d.ts +19 -0
- package/dist/src/generated/consumer/PlanTag.js +61 -0
- package/dist/src/generated/consumer/ScopeTag.d.ts +13 -0
- package/dist/src/generated/consumer/ScopeTag.js +34 -0
- package/dist/src/generated/consumer/SubscriptionTag.d.ts +37 -0
- package/dist/src/generated/consumer/SubscriptionTag.js +142 -0
- package/dist/src/generated/consumer/TransactionTag.d.ts +19 -0
- package/dist/src/generated/consumer/TransactionTag.js +61 -0
- package/package.json +3 -3
- package/dist/src/generated/backend/AppTokenCollectionQuery.d.ts +0 -15
- package/dist/src/generated/backend/AppTokenCollectionQuery.js +0 -5
- package/dist/src/generated/backend/AuditCollectionQuery.d.ts +0 -15
- package/dist/src/generated/backend/AuditCollectionQuery.js +0 -5
- package/dist/src/generated/backend/BackendAccountChangePasswordResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendAccountChangePasswordResource.js +0 -21
- package/dist/src/generated/backend/BackendAccountResource.d.ts +0 -22
- package/dist/src/generated/backend/BackendAccountResource.js +0 -30
- package/dist/src/generated/backend/BackendActionByActionIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendActionByActionIdResource.js +0 -40
- package/dist/src/generated/backend/BackendActionExecuteByActionIdResource.d.ts +0 -18
- package/dist/src/generated/backend/BackendActionExecuteByActionIdResource.js +0 -22
- package/dist/src/generated/backend/BackendActionFormResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendActionFormResource.js +0 -22
- package/dist/src/generated/backend/BackendActionListResource.d.ts +0 -15
- package/dist/src/generated/backend/BackendActionListResource.js +0 -20
- package/dist/src/generated/backend/BackendActionResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendActionResource.js +0 -32
- package/dist/src/generated/backend/BackendAppByAppIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendAppByAppIdResource.js +0 -40
- package/dist/src/generated/backend/BackendAppByAppIdTokenAndTokenIdResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendAppByAppIdTokenAndTokenIdResource.js +0 -22
- package/dist/src/generated/backend/BackendAppResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendAppResource.js +0 -32
- package/dist/src/generated/backend/BackendAppTokenByTokenIdResource.d.ts +0 -16
- package/dist/src/generated/backend/BackendAppTokenByTokenIdResource.js +0 -21
- package/dist/src/generated/backend/BackendAppTokenCollectionQuery.d.ts +0 -6
- package/dist/src/generated/backend/BackendAppTokenCollectionQuery.js +0 -5
- package/dist/src/generated/backend/BackendAppTokenResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendAppTokenResource.js +0 -22
- package/dist/src/generated/backend/BackendAuditByAuditIdResource.d.ts +0 -16
- package/dist/src/generated/backend/BackendAuditByAuditIdResource.js +0 -21
- package/dist/src/generated/backend/BackendAuditCollectionQuery.d.ts +0 -6
- package/dist/src/generated/backend/BackendAuditCollectionQuery.js +0 -5
- package/dist/src/generated/backend/BackendAuditResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendAuditResource.js +0 -22
- package/dist/src/generated/backend/BackendCategoryByCategoryIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendCategoryByCategoryIdResource.js +0 -40
- package/dist/src/generated/backend/BackendCategoryResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendCategoryResource.js +0 -32
- package/dist/src/generated/backend/BackendConfigByConfigIdResource.d.ts +0 -23
- package/dist/src/generated/backend/BackendConfigByConfigIdResource.js +0 -31
- package/dist/src/generated/backend/BackendConfigResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendConfigResource.js +0 -22
- package/dist/src/generated/backend/BackendConnectionByConnectionIdIntrospectionAndEntityResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendConnectionByConnectionIdIntrospectionAndEntityResource.js +0 -22
- package/dist/src/generated/backend/BackendConnectionByConnectionIdIntrospectionResource.d.ts +0 -16
- package/dist/src/generated/backend/BackendConnectionByConnectionIdIntrospectionResource.js +0 -21
- package/dist/src/generated/backend/BackendConnectionByConnectionIdRedirectResource.d.ts +0 -16
- package/dist/src/generated/backend/BackendConnectionByConnectionIdRedirectResource.js +0 -21
- package/dist/src/generated/backend/BackendConnectionByConnectionIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendConnectionByConnectionIdResource.js +0 -40
- package/dist/src/generated/backend/BackendConnectionFormResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendConnectionFormResource.js +0 -22
- package/dist/src/generated/backend/BackendConnectionListResource.d.ts +0 -15
- package/dist/src/generated/backend/BackendConnectionListResource.js +0 -20
- package/dist/src/generated/backend/BackendConnectionResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendConnectionResource.js +0 -32
- package/dist/src/generated/backend/BackendCronjobByCronjobIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendCronjobByCronjobIdResource.js +0 -40
- package/dist/src/generated/backend/BackendCronjobResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendCronjobResource.js +0 -32
- package/dist/src/generated/backend/BackendDashboardResource.d.ts +0 -15
- package/dist/src/generated/backend/BackendDashboardResource.js +0 -20
- package/dist/src/generated/backend/BackendEventByEventIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendEventByEventIdResource.js +0 -40
- package/dist/src/generated/backend/BackendEventResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendEventResource.js +0 -32
- package/dist/src/generated/backend/BackendEventSubscriptionBySubscriptionIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendEventSubscriptionBySubscriptionIdResource.js +0 -40
- package/dist/src/generated/backend/BackendEventSubscriptionResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendEventSubscriptionResource.js +0 -32
- package/dist/src/generated/backend/BackendGeneratorByProviderResource.d.ts +0 -30
- package/dist/src/generated/backend/BackendGeneratorByProviderResource.js +0 -41
- package/dist/src/generated/backend/BackendGeneratorResource.d.ts +0 -15
- package/dist/src/generated/backend/BackendGeneratorResource.js +0 -20
- package/dist/src/generated/backend/BackendLogByLogIdResource.d.ts +0 -16
- package/dist/src/generated/backend/BackendLogByLogIdResource.js +0 -21
- package/dist/src/generated/backend/BackendLogCollectionQuery.d.ts +0 -6
- package/dist/src/generated/backend/BackendLogCollectionQuery.js +0 -5
- package/dist/src/generated/backend/BackendLogErrorByErrorIdResource.d.ts +0 -16
- package/dist/src/generated/backend/BackendLogErrorByErrorIdResource.js +0 -21
- package/dist/src/generated/backend/BackendLogErrorResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendLogErrorResource.js +0 -22
- package/dist/src/generated/backend/BackendLogResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendLogResource.js +0 -22
- package/dist/src/generated/backend/BackendMarketplaceByAppNameResource.d.ts +0 -25
- package/dist/src/generated/backend/BackendMarketplaceByAppNameResource.js +0 -39
- package/dist/src/generated/backend/BackendMarketplaceResource.d.ts +0 -22
- package/dist/src/generated/backend/BackendMarketplaceResource.js +0 -30
- package/dist/src/generated/backend/BackendPageByPageIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendPageByPageIdResource.js +0 -40
- package/dist/src/generated/backend/BackendPageResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendPageResource.js +0 -32
- package/dist/src/generated/backend/BackendPlanByPlanIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendPlanByPlanIdResource.js +0 -40
- package/dist/src/generated/backend/BackendPlanResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendPlanResource.js +0 -32
- package/dist/src/generated/backend/BackendPlanUsageCollectionQuery.d.ts +0 -6
- package/dist/src/generated/backend/BackendPlanUsageCollectionQuery.js +0 -5
- package/dist/src/generated/backend/BackendRateByRateIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendRateByRateIdResource.js +0 -40
- package/dist/src/generated/backend/BackendRateResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendRateResource.js +0 -32
- package/dist/src/generated/backend/BackendRoleByRoleIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendRoleByRoleIdResource.js +0 -40
- package/dist/src/generated/backend/BackendRoleResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendRoleResource.js +0 -32
- package/dist/src/generated/backend/BackendRoutesByRouteIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendRoutesByRouteIdResource.js +0 -40
- package/dist/src/generated/backend/BackendRoutesResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendRoutesResource.js +0 -32
- package/dist/src/generated/backend/BackendSchemaBySchemaIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendSchemaBySchemaIdResource.js +0 -40
- package/dist/src/generated/backend/BackendSchemaFormBySchemaIdResource.d.ts +0 -18
- package/dist/src/generated/backend/BackendSchemaFormBySchemaIdResource.js +0 -22
- package/dist/src/generated/backend/BackendSchemaPreviewBySchemaIdResource.d.ts +0 -16
- package/dist/src/generated/backend/BackendSchemaPreviewBySchemaIdResource.js +0 -21
- package/dist/src/generated/backend/BackendSchemaResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendSchemaResource.js +0 -32
- package/dist/src/generated/backend/BackendScopeByScopeIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendScopeByScopeIdResource.js +0 -40
- package/dist/src/generated/backend/BackendScopeCategoriesResource.d.ts +0 -15
- package/dist/src/generated/backend/BackendScopeCategoriesResource.js +0 -20
- package/dist/src/generated/backend/BackendScopeResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendScopeResource.js +0 -32
- package/dist/src/generated/backend/BackendSdkResource.d.ts +0 -22
- package/dist/src/generated/backend/BackendSdkResource.js +0 -30
- package/dist/src/generated/backend/BackendStatisticCountRequestsResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticCountRequestsResource.js +0 -22
- package/dist/src/generated/backend/BackendStatisticErrorsPerRouteResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticErrorsPerRouteResource.js +0 -22
- package/dist/src/generated/backend/BackendStatisticIncomingRequestsResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticIncomingRequestsResource.js +0 -22
- package/dist/src/generated/backend/BackendStatisticIncomingTransactionsResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticIncomingTransactionsResource.js +0 -22
- package/dist/src/generated/backend/BackendStatisticIssuedTokensResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticIssuedTokensResource.js +0 -22
- package/dist/src/generated/backend/BackendStatisticMostUsedAppsResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticMostUsedAppsResource.js +0 -22
- package/dist/src/generated/backend/BackendStatisticMostUsedRoutesResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticMostUsedRoutesResource.js +0 -22
- package/dist/src/generated/backend/BackendStatisticTimeAverageResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticTimeAverageResource.js +0 -22
- package/dist/src/generated/backend/BackendStatisticTimePerRouteResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticTimePerRouteResource.js +0 -22
- package/dist/src/generated/backend/BackendStatisticUsedPointsResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendStatisticUsedPointsResource.js +0 -22
- package/dist/src/generated/backend/BackendTransactionByTransactionIdResource.d.ts +0 -16
- package/dist/src/generated/backend/BackendTransactionByTransactionIdResource.js +0 -21
- package/dist/src/generated/backend/BackendTransactionCollectionQuery.d.ts +0 -6
- package/dist/src/generated/backend/BackendTransactionCollectionQuery.js +0 -5
- package/dist/src/generated/backend/BackendTransactionResource.d.ts +0 -17
- package/dist/src/generated/backend/BackendTransactionResource.js +0 -22
- package/dist/src/generated/backend/BackendTrashByTypeResource.d.ts +0 -25
- package/dist/src/generated/backend/BackendTrashByTypeResource.js +0 -33
- package/dist/src/generated/backend/BackendTrashResource.d.ts +0 -15
- package/dist/src/generated/backend/BackendTrashResource.js +0 -20
- package/dist/src/generated/backend/BackendUserByUserIdResource.d.ts +0 -27
- package/dist/src/generated/backend/BackendUserByUserIdResource.js +0 -40
- package/dist/src/generated/backend/BackendUserResource.d.ts +0 -24
- package/dist/src/generated/backend/BackendUserResource.js +0 -32
- package/dist/src/generated/backend/CollectionCategoryQuery.d.ts +0 -8
- package/dist/src/generated/backend/CollectionCategoryQuery.js +0 -5
- package/dist/src/generated/backend/CollectionQuery.d.ts +0 -9
- package/dist/src/generated/backend/FormQuery.d.ts +0 -7
- package/dist/src/generated/backend/LogCollectionQuery.d.ts +0 -19
- package/dist/src/generated/backend/LogCollectionQuery.js +0 -5
- package/dist/src/generated/backend/PlanUsageCollectionQuery.d.ts +0 -13
- package/dist/src/generated/backend/PlanUsageCollectionQuery.js +0 -5
- package/dist/src/generated/backend/Route.d.ts +0 -16
- package/dist/src/generated/backend/Route.js +0 -5
- package/dist/src/generated/backend/RouteCollection.d.ts +0 -7
- package/dist/src/generated/backend/RouteCreate.d.ts +0 -7
- package/dist/src/generated/backend/RouteCreate.js +0 -5
- package/dist/src/generated/backend/RouteMethod.d.ts +0 -20
- package/dist/src/generated/backend/RouteMethod.js +0 -5
- package/dist/src/generated/backend/RouteMethodResponses.d.ts +0 -5
- package/dist/src/generated/backend/RouteMethodResponses.js +0 -5
- package/dist/src/generated/backend/RouteMethods.d.ts +0 -6
- package/dist/src/generated/backend/RouteMethods.js +0 -5
- package/dist/src/generated/backend/RouteUpdate.d.ts +0 -7
- package/dist/src/generated/backend/RouteUpdate.js +0 -5
- package/dist/src/generated/backend/RouteVersion.d.ts +0 -10
- package/dist/src/generated/backend/RouteVersion.js +0 -5
- package/dist/src/generated/backend/ScopeRoute.d.ts +0 -9
- package/dist/src/generated/backend/ScopeRoute.js +0 -5
- package/dist/src/generated/backend/TransactionCollectionQuery.d.ts +0 -15
- package/dist/src/generated/backend/TransactionCollectionQuery.js +0 -5
- package/dist/src/generated/consumer/CollectionQuery.d.ts +0 -9
- package/dist/src/generated/consumer/ConsumerAccountChangePasswordResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerAccountChangePasswordResource.js +0 -21
- package/dist/src/generated/consumer/ConsumerAccountResource.d.ts +0 -21
- package/dist/src/generated/consumer/ConsumerAccountResource.js +0 -30
- package/dist/src/generated/consumer/ConsumerActivateResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerActivateResource.js +0 -21
- package/dist/src/generated/consumer/ConsumerAppByAppIdResource.d.ts +0 -27
- package/dist/src/generated/consumer/ConsumerAppByAppIdResource.js +0 -40
- package/dist/src/generated/consumer/ConsumerAppResource.d.ts +0 -24
- package/dist/src/generated/consumer/ConsumerAppResource.js +0 -32
- package/dist/src/generated/consumer/ConsumerAuthorizeResource.d.ts +0 -22
- package/dist/src/generated/consumer/ConsumerAuthorizeResource.js +0 -30
- package/dist/src/generated/consumer/ConsumerEventResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerEventResource.js +0 -22
- package/dist/src/generated/consumer/ConsumerGrantByGrantIdResource.d.ts +0 -15
- package/dist/src/generated/consumer/ConsumerGrantByGrantIdResource.js +0 -21
- package/dist/src/generated/consumer/ConsumerGrantResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerGrantResource.js +0 -22
- package/dist/src/generated/consumer/ConsumerLogByLogIdResource.d.ts +0 -18
- package/dist/src/generated/consumer/ConsumerLogByLogIdResource.js +0 -23
- package/dist/src/generated/consumer/ConsumerLogResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerLogResource.js +0 -22
- package/dist/src/generated/consumer/ConsumerLoginResource.d.ts +0 -23
- package/dist/src/generated/consumer/ConsumerLoginResource.js +0 -31
- package/dist/src/generated/consumer/ConsumerPageByPageIdResource.d.ts +0 -16
- package/dist/src/generated/consumer/ConsumerPageByPageIdResource.js +0 -21
- package/dist/src/generated/consumer/ConsumerPageResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerPageResource.js +0 -22
- package/dist/src/generated/consumer/ConsumerPasswordResetResource.d.ts +0 -23
- package/dist/src/generated/consumer/ConsumerPasswordResetResource.js +0 -31
- package/dist/src/generated/consumer/ConsumerPaymentByProviderCheckoutResource.d.ts +0 -18
- package/dist/src/generated/consumer/ConsumerPaymentByProviderCheckoutResource.js +0 -22
- package/dist/src/generated/consumer/ConsumerPaymentByProviderPortalResource.d.ts +0 -18
- package/dist/src/generated/consumer/ConsumerPaymentByProviderPortalResource.js +0 -22
- package/dist/src/generated/consumer/ConsumerPlanByPlanIdResource.d.ts +0 -16
- package/dist/src/generated/consumer/ConsumerPlanByPlanIdResource.js +0 -21
- package/dist/src/generated/consumer/ConsumerPlanResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerPlanResource.js +0 -22
- package/dist/src/generated/consumer/ConsumerProviderByProviderResource.d.ts +0 -18
- package/dist/src/generated/consumer/ConsumerProviderByProviderResource.js +0 -22
- package/dist/src/generated/consumer/ConsumerRegisterResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerRegisterResource.js +0 -21
- package/dist/src/generated/consumer/ConsumerScopeResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerScopeResource.js +0 -22
- package/dist/src/generated/consumer/ConsumerSubscriptionBySubscriptionIdResource.d.ts +0 -27
- package/dist/src/generated/consumer/ConsumerSubscriptionBySubscriptionIdResource.js +0 -40
- package/dist/src/generated/consumer/ConsumerSubscriptionResource.d.ts +0 -24
- package/dist/src/generated/consumer/ConsumerSubscriptionResource.js +0 -32
- package/dist/src/generated/consumer/ConsumerTransactionByTransactionIdResource.d.ts +0 -16
- package/dist/src/generated/consumer/ConsumerTransactionByTransactionIdResource.js +0 -21
- package/dist/src/generated/consumer/ConsumerTransactionResource.d.ts +0 -17
- package/dist/src/generated/consumer/ConsumerTransactionResource.js +0 -22
|
@@ -2,189 +2,28 @@
|
|
|
2
2
|
* Client automatically generated by SDKgen please do not edit this file manually
|
|
3
3
|
* {@link https://sdkgen.app}
|
|
4
4
|
*/
|
|
5
|
-
import { ClientAbstract
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import ConsumerEventResource from "./ConsumerEventResource";
|
|
30
|
-
import ConsumerAppByAppIdResource from "./ConsumerAppByAppIdResource";
|
|
31
|
-
import ConsumerAppResource from "./ConsumerAppResource";
|
|
32
|
-
export default class Client extends ClientAbstract {
|
|
33
|
-
constructor(baseUrl: string, credentials?: CredentialsInterface | null, tokenStore?: TokenStoreInterface | null, scopes?: Array<string> | null);
|
|
34
|
-
/**
|
|
35
|
-
* Endpoint: /consumer/password_reset
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
getConsumerPasswordReset(): Promise<ConsumerPasswordResetResource>;
|
|
40
|
-
/**
|
|
41
|
-
* Endpoint: /consumer/register
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
getConsumerRegister(): Promise<ConsumerRegisterResource>;
|
|
46
|
-
/**
|
|
47
|
-
* Endpoint: /consumer/provider/:provider
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
getConsumerProviderByProvider(provider: string): Promise<ConsumerProviderByProviderResource>;
|
|
52
|
-
/**
|
|
53
|
-
* Endpoint: /consumer/login
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
getConsumerLogin(): Promise<ConsumerLoginResource>;
|
|
58
|
-
/**
|
|
59
|
-
* Endpoint: /consumer/authorize
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
getConsumerAuthorize(): Promise<ConsumerAuthorizeResource>;
|
|
64
|
-
/**
|
|
65
|
-
* Endpoint: /consumer/activate
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
getConsumerActivate(): Promise<ConsumerActivateResource>;
|
|
70
|
-
/**
|
|
71
|
-
* Endpoint: /consumer/account/change_password
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
|
-
getConsumerAccountChangePassword(): Promise<ConsumerAccountChangePasswordResource>;
|
|
76
|
-
/**
|
|
77
|
-
* Endpoint: /consumer/account
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
getConsumerAccount(): Promise<ConsumerAccountResource>;
|
|
82
|
-
/**
|
|
83
|
-
* Endpoint: /consumer/transaction/$transaction_id<[0-9]+>
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
getConsumerTransactionByTransactionId(transactionId: string): Promise<ConsumerTransactionByTransactionIdResource>;
|
|
88
|
-
/**
|
|
89
|
-
* Endpoint: /consumer/transaction
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*/
|
|
93
|
-
getConsumerTransaction(): Promise<ConsumerTransactionResource>;
|
|
94
|
-
/**
|
|
95
|
-
* Endpoint: /consumer/subscription/$subscription_id<[0-9]+>
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
getConsumerSubscriptionBySubscriptionId(subscriptionId: string): Promise<ConsumerSubscriptionBySubscriptionIdResource>;
|
|
100
|
-
/**
|
|
101
|
-
* Endpoint: /consumer/subscription
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
getConsumerSubscription(): Promise<ConsumerSubscriptionResource>;
|
|
106
|
-
/**
|
|
107
|
-
* Endpoint: /consumer/scope
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*/
|
|
111
|
-
getConsumerScope(): Promise<ConsumerScopeResource>;
|
|
112
|
-
/**
|
|
113
|
-
* Endpoint: /consumer/plan/$plan_id<[0-9]+>
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*/
|
|
117
|
-
getConsumerPlanByPlanId(planId: string): Promise<ConsumerPlanByPlanIdResource>;
|
|
118
|
-
/**
|
|
119
|
-
* Endpoint: /consumer/plan
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*/
|
|
123
|
-
getConsumerPlan(): Promise<ConsumerPlanResource>;
|
|
124
|
-
/**
|
|
125
|
-
* Endpoint: /consumer/payment/:provider/checkout
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
getConsumerPaymentByProviderCheckout(provider: string): Promise<ConsumerPaymentByProviderCheckoutResource>;
|
|
130
|
-
/**
|
|
131
|
-
* Endpoint: /consumer/payment/:provider/portal
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*/
|
|
135
|
-
getConsumerPaymentByProviderPortal(provider: string): Promise<ConsumerPaymentByProviderPortalResource>;
|
|
136
|
-
/**
|
|
137
|
-
* Endpoint: /consumer/page/:page_id
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*/
|
|
141
|
-
getConsumerPageByPageId(pageId: string): Promise<ConsumerPageByPageIdResource>;
|
|
142
|
-
/**
|
|
143
|
-
* Endpoint: /consumer/page
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
|
-
getConsumerPage(): Promise<ConsumerPageResource>;
|
|
148
|
-
/**
|
|
149
|
-
* Endpoint: /consumer/log/$log_id<[0-9]+>
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*/
|
|
153
|
-
getConsumerLogByLogId(logId: string): Promise<ConsumerLogByLogIdResource>;
|
|
154
|
-
/**
|
|
155
|
-
* Endpoint: /consumer/log
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*/
|
|
159
|
-
getConsumerLog(): Promise<ConsumerLogResource>;
|
|
160
|
-
/**
|
|
161
|
-
* Endpoint: /consumer/grant/$grant_id<[0-9]+>
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*/
|
|
165
|
-
getConsumerGrantByGrantId(grantId: string): Promise<ConsumerGrantByGrantIdResource>;
|
|
166
|
-
/**
|
|
167
|
-
* Endpoint: /consumer/grant
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
|
-
getConsumerGrant(): Promise<ConsumerGrantResource>;
|
|
172
|
-
/**
|
|
173
|
-
* Endpoint: /consumer/event
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*/
|
|
177
|
-
getConsumerEvent(): Promise<ConsumerEventResource>;
|
|
178
|
-
/**
|
|
179
|
-
* Endpoint: /consumer/app/$app_id<[0-9]+>
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*/
|
|
183
|
-
getConsumerAppByAppId(appId: string): Promise<ConsumerAppByAppIdResource>;
|
|
184
|
-
/**
|
|
185
|
-
* Endpoint: /consumer/app
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*/
|
|
189
|
-
getConsumerApp(): Promise<ConsumerAppResource>;
|
|
5
|
+
import { ClientAbstract } from "sdkgen-client";
|
|
6
|
+
import { AccountTag } from "./AccountTag";
|
|
7
|
+
import { TransactionTag } from "./TransactionTag";
|
|
8
|
+
import { SubscriptionTag } from "./SubscriptionTag";
|
|
9
|
+
import { ScopeTag } from "./ScopeTag";
|
|
10
|
+
import { PlanTag } from "./PlanTag";
|
|
11
|
+
import { PaymentTag } from "./PaymentTag";
|
|
12
|
+
import { PageTag } from "./PageTag";
|
|
13
|
+
import { LogTag } from "./LogTag";
|
|
14
|
+
import { GrantTag } from "./GrantTag";
|
|
15
|
+
import { EventTag } from "./EventTag";
|
|
16
|
+
import { AppTag } from "./AppTag";
|
|
17
|
+
export declare class Client extends ClientAbstract {
|
|
18
|
+
account(): AccountTag;
|
|
19
|
+
transaction(): TransactionTag;
|
|
20
|
+
subscription(): SubscriptionTag;
|
|
21
|
+
scope(): ScopeTag;
|
|
22
|
+
plan(): PlanTag;
|
|
23
|
+
payment(): PaymentTag;
|
|
24
|
+
page(): PageTag;
|
|
25
|
+
log(): LogTag;
|
|
26
|
+
grant(): GrantTag;
|
|
27
|
+
event(): EventTag;
|
|
28
|
+
app(): AppTag;
|
|
190
29
|
}
|
|
@@ -3,242 +3,49 @@
|
|
|
3
3
|
* {@link https://sdkgen.app}
|
|
4
4
|
*/
|
|
5
5
|
import { ClientAbstract } from "sdkgen-client";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return new ConsumerRegisterResource(this.baseUrl, await this.newHttpClient());
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Endpoint: /consumer/provider/:provider
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
async getConsumerProviderByProvider(provider) {
|
|
58
|
-
return new ConsumerProviderByProviderResource(provider, this.baseUrl, await this.newHttpClient());
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Endpoint: /consumer/login
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
async getConsumerLogin() {
|
|
66
|
-
return new ConsumerLoginResource(this.baseUrl, await this.newHttpClient());
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Endpoint: /consumer/authorize
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
async getConsumerAuthorize() {
|
|
74
|
-
return new ConsumerAuthorizeResource(this.baseUrl, await this.newHttpClient());
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Endpoint: /consumer/activate
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
async getConsumerActivate() {
|
|
82
|
-
return new ConsumerActivateResource(this.baseUrl, await this.newHttpClient());
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Endpoint: /consumer/account/change_password
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*/
|
|
89
|
-
async getConsumerAccountChangePassword() {
|
|
90
|
-
return new ConsumerAccountChangePasswordResource(this.baseUrl, await this.newHttpClient());
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Endpoint: /consumer/account
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
async getConsumerAccount() {
|
|
98
|
-
return new ConsumerAccountResource(this.baseUrl, await this.newHttpClient());
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Endpoint: /consumer/transaction/$transaction_id<[0-9]+>
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
async getConsumerTransactionByTransactionId(transactionId) {
|
|
106
|
-
return new ConsumerTransactionByTransactionIdResource(transactionId, this.baseUrl, await this.newHttpClient());
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Endpoint: /consumer/transaction
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
|
-
async getConsumerTransaction() {
|
|
114
|
-
return new ConsumerTransactionResource(this.baseUrl, await this.newHttpClient());
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Endpoint: /consumer/subscription/$subscription_id<[0-9]+>
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
async getConsumerSubscriptionBySubscriptionId(subscriptionId) {
|
|
122
|
-
return new ConsumerSubscriptionBySubscriptionIdResource(subscriptionId, this.baseUrl, await this.newHttpClient());
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Endpoint: /consumer/subscription
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
async getConsumerSubscription() {
|
|
130
|
-
return new ConsumerSubscriptionResource(this.baseUrl, await this.newHttpClient());
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Endpoint: /consumer/scope
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*/
|
|
137
|
-
async getConsumerScope() {
|
|
138
|
-
return new ConsumerScopeResource(this.baseUrl, await this.newHttpClient());
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Endpoint: /consumer/plan/$plan_id<[0-9]+>
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*/
|
|
145
|
-
async getConsumerPlanByPlanId(planId) {
|
|
146
|
-
return new ConsumerPlanByPlanIdResource(planId, this.baseUrl, await this.newHttpClient());
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Endpoint: /consumer/plan
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*/
|
|
153
|
-
async getConsumerPlan() {
|
|
154
|
-
return new ConsumerPlanResource(this.baseUrl, await this.newHttpClient());
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Endpoint: /consumer/payment/:provider/checkout
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*/
|
|
161
|
-
async getConsumerPaymentByProviderCheckout(provider) {
|
|
162
|
-
return new ConsumerPaymentByProviderCheckoutResource(provider, this.baseUrl, await this.newHttpClient());
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Endpoint: /consumer/payment/:provider/portal
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*/
|
|
169
|
-
async getConsumerPaymentByProviderPortal(provider) {
|
|
170
|
-
return new ConsumerPaymentByProviderPortalResource(provider, this.baseUrl, await this.newHttpClient());
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Endpoint: /consumer/page/:page_id
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*/
|
|
177
|
-
async getConsumerPageByPageId(pageId) {
|
|
178
|
-
return new ConsumerPageByPageIdResource(pageId, this.baseUrl, await this.newHttpClient());
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Endpoint: /consumer/page
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
185
|
-
async getConsumerPage() {
|
|
186
|
-
return new ConsumerPageResource(this.baseUrl, await this.newHttpClient());
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Endpoint: /consumer/log/$log_id<[0-9]+>
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*/
|
|
193
|
-
async getConsumerLogByLogId(logId) {
|
|
194
|
-
return new ConsumerLogByLogIdResource(logId, this.baseUrl, await this.newHttpClient());
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Endpoint: /consumer/log
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*/
|
|
201
|
-
async getConsumerLog() {
|
|
202
|
-
return new ConsumerLogResource(this.baseUrl, await this.newHttpClient());
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Endpoint: /consumer/grant/$grant_id<[0-9]+>
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*/
|
|
209
|
-
async getConsumerGrantByGrantId(grantId) {
|
|
210
|
-
return new ConsumerGrantByGrantIdResource(grantId, this.baseUrl, await this.newHttpClient());
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Endpoint: /consumer/grant
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*/
|
|
217
|
-
async getConsumerGrant() {
|
|
218
|
-
return new ConsumerGrantResource(this.baseUrl, await this.newHttpClient());
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Endpoint: /consumer/event
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*/
|
|
225
|
-
async getConsumerEvent() {
|
|
226
|
-
return new ConsumerEventResource(this.baseUrl, await this.newHttpClient());
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Endpoint: /consumer/app/$app_id<[0-9]+>
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*/
|
|
233
|
-
async getConsumerAppByAppId(appId) {
|
|
234
|
-
return new ConsumerAppByAppIdResource(appId, this.baseUrl, await this.newHttpClient());
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Endpoint: /consumer/app
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*/
|
|
241
|
-
async getConsumerApp() {
|
|
242
|
-
return new ConsumerAppResource(this.baseUrl, await this.newHttpClient());
|
|
6
|
+
import { AccountTag } from "./AccountTag";
|
|
7
|
+
import { TransactionTag } from "./TransactionTag";
|
|
8
|
+
import { SubscriptionTag } from "./SubscriptionTag";
|
|
9
|
+
import { ScopeTag } from "./ScopeTag";
|
|
10
|
+
import { PlanTag } from "./PlanTag";
|
|
11
|
+
import { PaymentTag } from "./PaymentTag";
|
|
12
|
+
import { PageTag } from "./PageTag";
|
|
13
|
+
import { LogTag } from "./LogTag";
|
|
14
|
+
import { GrantTag } from "./GrantTag";
|
|
15
|
+
import { EventTag } from "./EventTag";
|
|
16
|
+
import { AppTag } from "./AppTag";
|
|
17
|
+
export class Client extends ClientAbstract {
|
|
18
|
+
account() {
|
|
19
|
+
return new AccountTag(this.httpClient, this.parser);
|
|
20
|
+
}
|
|
21
|
+
transaction() {
|
|
22
|
+
return new TransactionTag(this.httpClient, this.parser);
|
|
23
|
+
}
|
|
24
|
+
subscription() {
|
|
25
|
+
return new SubscriptionTag(this.httpClient, this.parser);
|
|
26
|
+
}
|
|
27
|
+
scope() {
|
|
28
|
+
return new ScopeTag(this.httpClient, this.parser);
|
|
29
|
+
}
|
|
30
|
+
plan() {
|
|
31
|
+
return new PlanTag(this.httpClient, this.parser);
|
|
32
|
+
}
|
|
33
|
+
payment() {
|
|
34
|
+
return new PaymentTag(this.httpClient, this.parser);
|
|
35
|
+
}
|
|
36
|
+
page() {
|
|
37
|
+
return new PageTag(this.httpClient, this.parser);
|
|
38
|
+
}
|
|
39
|
+
log() {
|
|
40
|
+
return new LogTag(this.httpClient, this.parser);
|
|
41
|
+
}
|
|
42
|
+
grant() {
|
|
43
|
+
return new GrantTag(this.httpClient, this.parser);
|
|
44
|
+
}
|
|
45
|
+
event() {
|
|
46
|
+
return new EventTag(this.httpClient, this.parser);
|
|
47
|
+
}
|
|
48
|
+
app() {
|
|
49
|
+
return new AppTag(this.httpClient, this.parser);
|
|
243
50
|
}
|
|
244
51
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventTag automatically generated by SDKgen please do not edit this file manually
|
|
3
|
+
* {@link https://sdkgen.app}
|
|
4
|
+
*/
|
|
5
|
+
import { TagAbstract } from "sdkgen-client";
|
|
6
|
+
import { EventCollection } from "./EventCollection";
|
|
7
|
+
export declare class EventTag extends TagAbstract {
|
|
8
|
+
/**
|
|
9
|
+
* @returns {Promise<EventCollection>}
|
|
10
|
+
* @throws {ClientException}
|
|
11
|
+
*/
|
|
12
|
+
getAll(): Promise<EventCollection>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventTag automatically generated by SDKgen please do not edit this file manually
|
|
3
|
+
* {@link https://sdkgen.app}
|
|
4
|
+
*/
|
|
5
|
+
import axios from "axios";
|
|
6
|
+
import { TagAbstract } from "sdkgen-client";
|
|
7
|
+
import { ClientException, UnknownStatusCodeException } from "sdkgen-client";
|
|
8
|
+
export class EventTag extends TagAbstract {
|
|
9
|
+
/**
|
|
10
|
+
* @returns {Promise<EventCollection>}
|
|
11
|
+
* @throws {ClientException}
|
|
12
|
+
*/
|
|
13
|
+
async getAll() {
|
|
14
|
+
const url = this.parser.url('/consumer/event', {});
|
|
15
|
+
let params = {
|
|
16
|
+
url: url,
|
|
17
|
+
method: 'GET',
|
|
18
|
+
params: this.parser.query({}),
|
|
19
|
+
};
|
|
20
|
+
try {
|
|
21
|
+
const response = await this.httpClient.request(params);
|
|
22
|
+
return response.data;
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
if (axios.isAxiosError(error) && error.response) {
|
|
26
|
+
switch (error.response.status) {
|
|
27
|
+
default:
|
|
28
|
+
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GrantTag automatically generated by SDKgen please do not edit this file manually
|
|
3
|
+
* {@link https://sdkgen.app}
|
|
4
|
+
*/
|
|
5
|
+
import { TagAbstract } from "sdkgen-client";
|
|
6
|
+
import { GrantCollection } from "./GrantCollection";
|
|
7
|
+
import { Message } from "./Message";
|
|
8
|
+
export declare class GrantTag extends TagAbstract {
|
|
9
|
+
/**
|
|
10
|
+
* @returns {Promise<Message>}
|
|
11
|
+
* @throws {ClientException}
|
|
12
|
+
*/
|
|
13
|
+
delete(grantId: string): Promise<Message>;
|
|
14
|
+
/**
|
|
15
|
+
* @returns {Promise<GrantCollection>}
|
|
16
|
+
* @throws {ClientException}
|
|
17
|
+
*/
|
|
18
|
+
getAll(): Promise<GrantCollection>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GrantTag automatically generated by SDKgen please do not edit this file manually
|
|
3
|
+
* {@link https://sdkgen.app}
|
|
4
|
+
*/
|
|
5
|
+
import axios from "axios";
|
|
6
|
+
import { TagAbstract } from "sdkgen-client";
|
|
7
|
+
import { ClientException, UnknownStatusCodeException } from "sdkgen-client";
|
|
8
|
+
export class GrantTag extends TagAbstract {
|
|
9
|
+
/**
|
|
10
|
+
* @returns {Promise<Message>}
|
|
11
|
+
* @throws {ClientException}
|
|
12
|
+
*/
|
|
13
|
+
async delete(grantId) {
|
|
14
|
+
const url = this.parser.url('/consumer/grant/$grant_id<[0-9]+>', {
|
|
15
|
+
'grant_id': grantId,
|
|
16
|
+
});
|
|
17
|
+
let params = {
|
|
18
|
+
url: url,
|
|
19
|
+
method: 'DELETE',
|
|
20
|
+
params: this.parser.query({}),
|
|
21
|
+
};
|
|
22
|
+
try {
|
|
23
|
+
const response = await this.httpClient.request(params);
|
|
24
|
+
return response.data;
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
if (axios.isAxiosError(error) && error.response) {
|
|
28
|
+
switch (error.response.status) {
|
|
29
|
+
default:
|
|
30
|
+
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @returns {Promise<GrantCollection>}
|
|
38
|
+
* @throws {ClientException}
|
|
39
|
+
*/
|
|
40
|
+
async getAll() {
|
|
41
|
+
const url = this.parser.url('/consumer/grant', {});
|
|
42
|
+
let params = {
|
|
43
|
+
url: url,
|
|
44
|
+
method: 'GET',
|
|
45
|
+
params: this.parser.query({}),
|
|
46
|
+
};
|
|
47
|
+
try {
|
|
48
|
+
const response = await this.httpClient.request(params);
|
|
49
|
+
return response.data;
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
if (axios.isAxiosError(error) && error.response) {
|
|
53
|
+
switch (error.response.status) {
|
|
54
|
+
default:
|
|
55
|
+
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LogTag automatically generated by SDKgen please do not edit this file manually
|
|
3
|
+
* {@link https://sdkgen.app}
|
|
4
|
+
*/
|
|
5
|
+
import { TagAbstract } from "sdkgen-client";
|
|
6
|
+
import { Log } from "./Log";
|
|
7
|
+
import { LogCollection } from "./LogCollection";
|
|
8
|
+
export declare class LogTag extends TagAbstract {
|
|
9
|
+
/**
|
|
10
|
+
* @returns {Promise<Log>}
|
|
11
|
+
* @throws {ClientException}
|
|
12
|
+
*/
|
|
13
|
+
get(logId: string): Promise<Log>;
|
|
14
|
+
/**
|
|
15
|
+
* @returns {Promise<LogCollection>}
|
|
16
|
+
* @throws {ClientException}
|
|
17
|
+
*/
|
|
18
|
+
getAll(): Promise<LogCollection>;
|
|
19
|
+
}
|