@flosum/salesforce 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/axios-interceptors/auth.axios-interceptor.js +1 -0
- package/dist/cjs/axios-interceptors/proxy.axios-interceptor.js +1 -0
- package/dist/cjs/axios-interceptors/refresh-auth.interceptor.js +1 -0
- package/dist/cjs/axios-interceptors/retry.axios-interceptor.js +1 -0
- package/dist/cjs/classes/authorization-manager.fixture.js +1 -0
- package/dist/cjs/classes/authorization-manager.js +1 -0
- package/dist/cjs/classes/automation-process-manager/base-automation-process.js +1 -0
- package/dist/cjs/classes/automation-process-manager/flows-automation-process.fixtures.js +1 -0
- package/dist/cjs/classes/automation-process-manager/flows-automation-process.js +1 -0
- package/dist/cjs/classes/automation-process-manager/manager-automation-process.js +1 -0
- package/dist/cjs/classes/automation-process-manager/triggers-automation-process.fixtures.js +1 -0
- package/dist/cjs/classes/automation-process-manager/triggers-automation-process.js +1 -0
- package/dist/cjs/classes/automation-process-manager/validation-rules-automation-process.fixtures.js +1 -0
- package/dist/cjs/classes/automation-process-manager/validation-rules-automation-process.js +1 -0
- package/dist/cjs/classes/automation-process-manager/workflows-automation-process.fixtures.js +1 -0
- package/dist/cjs/classes/automation-process-manager/workflows-automation-process.js +1 -0
- package/dist/cjs/classes/clause-builder.js +1 -0
- package/dist/cjs/classes/declarative-filter-eval.js +1 -0
- package/dist/cjs/classes/deploy-data/base-bulk-v1-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-data/base-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-data/base-rest-binary-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-data/base-rest-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-data/binary-bulk-v1-deploy-data.fixtures.js +1 -0
- package/dist/cjs/classes/deploy-data/binary-bulk-v1-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-data/composite-binary-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-data/delete-bulk-v1-deploy-data.fixtures.js +1 -0
- package/dist/cjs/classes/deploy-data/delete-bulk-v1-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-data/rest-simple-deploy-data.fixtures.js +1 -0
- package/dist/cjs/classes/deploy-data/rest-simple-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-data/rest-sobject-binary-deploy-data.fixtures.js +1 -0
- package/dist/cjs/classes/deploy-data/rest-sobject-binary-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-data/simple-bulk-v1-deploy-data.fixtures.js +1 -0
- package/dist/cjs/classes/deploy-data/simple-bulk-v1-deploy-data.js +1 -0
- package/dist/cjs/classes/deploy-metadata/base.deploy.js +1 -0
- package/dist/cjs/classes/deploy-metadata/binary.deploy.js +1 -0
- package/dist/cjs/classes/deploy-metadata/default.deploy.js +1 -0
- package/dist/cjs/classes/deploy-metadata/parsers/base.deploy-preparer.js +1 -0
- package/dist/cjs/classes/deploy-metadata/parsers/composite.deploy-preparer.js +1 -0
- package/dist/cjs/classes/deploy-metadata/parsers/default.deploy-preparer.js +1 -0
- package/dist/cjs/classes/deploy-metadata/parsers/factory.deploy-preparer.js +1 -0
- package/dist/cjs/classes/error/bulk1-error.js +1 -0
- package/dist/cjs/classes/error/error-factory.js +1 -0
- package/dist/cjs/classes/error/rest-error.js +1 -0
- package/dist/cjs/classes/error/salesforce-deploy-metadata-error.js +1 -0
- package/dist/cjs/classes/error/soap-error.js +1 -0
- package/dist/cjs/classes/index.js +1 -0
- package/dist/cjs/classes/logger.js +1 -0
- package/dist/cjs/classes/pk-chunking.fixtures.js +1 -0
- package/dist/cjs/classes/pk-chunking.js +1 -0
- package/dist/cjs/classes/query-builder.js +1 -0
- package/dist/cjs/classes/retrieve-binary/apex-rest-retrieve-binary.js +1 -0
- package/dist/cjs/classes/retrieve-binary/base-retrieve-binary.js +1 -0
- package/dist/cjs/classes/retrieve-binary/rest-retrieve-binary.js +1 -0
- package/dist/cjs/classes/retrieve-data/base-retrieve-data.js +1 -0
- package/dist/cjs/classes/retrieve-data/bulk1-custom-pk-retrieve-data.js +1 -0
- package/dist/cjs/classes/retrieve-data/bulk1-pk-retrieve-data.fixtures.js +1 -0
- package/dist/cjs/classes/retrieve-data/bulk1-pk-retrieve-data.js +1 -0
- package/dist/cjs/classes/retrieve-data/bulk1-retrieve-data.fixtures.js +1 -0
- package/dist/cjs/classes/retrieve-data/bulk1-retrieve-data.js +1 -0
- package/dist/cjs/classes/retrieve-data/bulk2-retrieve-data.fixtures.js +1 -0
- package/dist/cjs/classes/retrieve-data/bulk2-retrieve-data.js +1 -0
- package/dist/cjs/classes/retrieve-data/custom-rest-retrieve-data.fixtures.js +1 -0
- package/dist/cjs/classes/retrieve-data/custom-rest-retrieve-data.js +1 -0
- package/dist/cjs/classes/retrieve-data/standard-rest-pk-limit-retrieve-data.fixtures.js +1 -0
- package/dist/cjs/classes/retrieve-data/standard-rest-pk-limit-retrieve-data.js +1 -0
- package/dist/cjs/classes/retrieve-data/standard-rest-pk-retrieve-data.js +1 -0
- package/dist/cjs/classes/retrieve-data/standard-rest-retrieve-data.fixtures.js +1 -0
- package/dist/cjs/classes/retrieve-data/standard-rest-retrieve-data.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/base.retrieve.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/full.retrieve.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/handlers/base-metadata.handler.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/handlers/bundle-metadata.handler.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/handlers/child-metadata.handler.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/handlers/default-metadata.handler.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/handlers/metadata-handler-factory.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/handlers/parent-metadata.handler.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/handlers/with-meta-xml-metadata.handler.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/list-metadata/base.folder.list-metadata.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/list-metadata/base.list-metadata.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/list-metadata/default.list-metadata.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/list-metadata/folder-list.metadata.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/list-metadata/manager.list-metadata.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/list-metadata/parent.list-metadata.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/list-metadata/record-types.list-metadata.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/list-metadata/sub-folder-list.metadata.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/partial.retrieve.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/retrievers/base.retriever.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/retrievers/default.retriever.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/retrievers/read.retriever.js +1 -0
- package/dist/cjs/classes/retrieve-metadata/retrievers/retriever-manager.js +1 -0
- package/dist/cjs/classes/salesforce-error.class.js +1 -0
- package/dist/cjs/commands/index.js +1 -0
- package/dist/cjs/commands/sfdx/base-sfdx.command.js +1 -0
- package/dist/cjs/commands/sfdx/config-set-sfdx.command.js +1 -0
- package/dist/cjs/commands/sfdx/create-project-sfdx.command.js +1 -0
- package/dist/cjs/commands/sfdx/describe-metadata-sfdx.command.js +1 -0
- package/dist/cjs/commands/sfdx/list-metadata-sfdx.command.js +1 -0
- package/dist/cjs/commands/sfdx/source-retrieve-sfdx.command.js +1 -0
- package/dist/cjs/commands/soap/base-soap.command.js +1 -0
- package/dist/cjs/commands/soap/check-deploy-status-soap.command.js +1 -0
- package/dist/cjs/commands/soap/check-retrieve-status-soap.command.js +1 -0
- package/dist/cjs/commands/soap/deploy-soap-command.js +1 -0
- package/dist/cjs/commands/soap/deploy-soap-compose.js +1 -0
- package/dist/cjs/commands/soap/describe-metadata-soap.command.js +1 -0
- package/dist/cjs/commands/soap/list-metadata-soap.command.js +1 -0
- package/dist/cjs/commands/soap/list-metadata-soap.compose.js +1 -0
- package/dist/cjs/commands/soap/read-metadata-soap.command.js +1 -0
- package/dist/cjs/commands/soap/read-metadata-soap.compose.js +1 -0
- package/dist/cjs/commands/soap/retrieve-soap-command.js +1 -0
- package/dist/cjs/commands/soap/retrieve-soap.compose.js +1 -0
- package/dist/cjs/constants/bulk.constants.js +1 -0
- package/dist/cjs/constants/business-account-standard-fields.constants.js +1 -0
- package/dist/cjs/constants/composite.constants.js +1 -0
- package/dist/cjs/constants/custom-rest-body.constants.js +1 -0
- package/dist/cjs/constants/fields.constants.js +1 -0
- package/dist/cjs/constants/index.js +1 -0
- package/dist/cjs/constants/metadata.constants.js +1 -0
- package/dist/cjs/constants/person-account-standard-fields.constants.js +1 -0
- package/dist/cjs/constants/rest-query.constants.js +1 -0
- package/dist/cjs/constants/salesforce.constants.js +1 -0
- package/dist/cjs/constants/sfdx.constants.js +1 -0
- package/dist/cjs/constants/sobject.constants.js +1 -0
- package/dist/cjs/enums/bulk1.enums.js +1 -0
- package/dist/cjs/enums/bulk2.enums.js +1 -0
- package/dist/cjs/enums/declarative-filter.enums.js +1 -0
- package/dist/cjs/enums/deploy.metadata.enums.js +1 -0
- package/dist/cjs/enums/describe.enums.js +1 -0
- package/dist/cjs/enums/field-type.enum.js +1 -0
- package/dist/cjs/enums/index.js +1 -0
- package/dist/cjs/enums/organization-type.enum.js +1 -0
- package/dist/cjs/enums/query.enums.js +1 -0
- package/dist/cjs/enums/retreive.metadata.enums.js +1 -0
- package/dist/cjs/enums/soap.enums.js +1 -0
- package/dist/cjs/enums/type.metadata.enum.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/interfaces/axios-interceptor.interfaces.js +1 -0
- package/dist/cjs/interfaces/bulk1.interfaces.js +1 -0
- package/dist/cjs/interfaces/bulk2.interfaces.js +1 -0
- package/dist/cjs/interfaces/composite.interfaces.js +1 -0
- package/dist/cjs/interfaces/declarative-filter.interfaces.js +1 -0
- package/dist/cjs/interfaces/deploy.interfaces.js +1 -0
- package/dist/cjs/interfaces/describe.interfaces.js +1 -0
- package/dist/cjs/interfaces/index.js +1 -0
- package/dist/cjs/interfaces/internal/tooling-api.interfaces.js +1 -0
- package/dist/cjs/interfaces/knowledge.interfaces.js +1 -0
- package/dist/cjs/interfaces/limit.interfaces.js +1 -0
- package/dist/cjs/interfaces/metadata/base.interfaces.js +1 -0
- package/dist/cjs/interfaces/metadata/config.interfaces.js +1 -0
- package/dist/cjs/interfaces/metadata/deploy-metadata.interfaces.js +1 -0
- package/dist/cjs/interfaces/metadata/describe-metadata.interfaces.js +1 -0
- package/dist/cjs/interfaces/metadata/list-metadata.interfaces.js +1 -0
- package/dist/cjs/interfaces/metadata/logger.interfaces.js +1 -0
- package/dist/cjs/interfaces/metadata/read-metadata.interfaces.js +1 -0
- package/dist/cjs/interfaces/metadata/retrieve-metadata.interfaces.js +1 -0
- package/dist/cjs/interfaces/metadata/type.interfaces.js +1 -0
- package/dist/cjs/interfaces/query.interfaces.js +1 -0
- package/dist/cjs/interfaces/rest.interfaces.js +1 -0
- package/dist/cjs/interfaces/retrieve-binary.interfaces.js +1 -0
- package/dist/cjs/interfaces/retrieve.interfaces.js +1 -0
- package/dist/cjs/interfaces/token.interfaces.js +1 -0
- package/dist/cjs/services/apex-rest.service.js +1 -0
- package/dist/cjs/services/bulk1.service.js +1 -0
- package/dist/cjs/services/bulk2.service.js +1 -0
- package/dist/cjs/services/composite.service.js +1 -0
- package/dist/cjs/services/crud.service.js +1 -0
- package/dist/cjs/services/describe.service.js +1 -0
- package/dist/cjs/services/index.js +1 -0
- package/dist/cjs/services/knowledge.service.js +1 -0
- package/dist/cjs/services/limit.service.js +1 -0
- package/dist/cjs/services/oauth.service.js +1 -0
- package/dist/cjs/services/packages.service.js +1 -0
- package/dist/cjs/services/query.service.js +1 -0
- package/dist/cjs/services/rest.service.js +1 -0
- package/dist/cjs/utils/array.utils.js +1 -0
- package/dist/cjs/utils/axios-instance.utils.js +1 -0
- package/dist/cjs/utils/bulk.utils.js +1 -0
- package/dist/cjs/utils/describe.utils.js +1 -0
- package/dist/cjs/utils/field.utils.js +1 -0
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/info.utils.js +1 -0
- package/dist/cjs/utils/object-utils.js +1 -0
- package/dist/cjs/utils/organization.utils.js +1 -0
- package/dist/cjs/utils/promise.utils.js +1 -0
- package/dist/cjs/utils/query.utils.js +1 -0
- package/dist/cjs/utils/rest-query.utils.js +1 -0
- package/dist/cjs/utils/salesforce.utils.js +1 -0
- package/dist/cjs/utils/sfdx.utils.js +1 -0
- package/dist/cjs/utils/sobject.utils.js +1 -0
- package/dist/cjs/utils/test.utils.js +1 -0
- package/dist/cjs/utils/timer.utils.js +1 -0
- package/dist/esm/index.mjs +206 -0
- package/dist/typings/axios-interceptors/auth.axios-interceptor.d.ts +8 -0
- package/dist/typings/axios-interceptors/proxy.axios-interceptor.d.ts +8 -0
- package/dist/typings/axios-interceptors/refresh-auth.interceptor.d.ts +8 -0
- package/dist/typings/axios-interceptors/retry.axios-interceptor.d.ts +21 -0
- package/dist/typings/classes/authorization-manager.d.ts +15 -0
- package/dist/typings/classes/authorization-manager.fixture.d.ts +4 -0
- package/dist/typings/classes/automation-process-manager/base-automation-process.d.ts +17 -0
- package/dist/typings/classes/automation-process-manager/flows-automation-process.d.ts +7 -0
- package/dist/typings/classes/automation-process-manager/flows-automation-process.fixtures.d.ts +23 -0
- package/dist/typings/classes/automation-process-manager/manager-automation-process.d.ts +27 -0
- package/dist/typings/classes/automation-process-manager/triggers-automation-process.d.ts +7 -0
- package/dist/typings/classes/automation-process-manager/triggers-automation-process.fixtures.d.ts +23 -0
- package/dist/typings/classes/automation-process-manager/validation-rules-automation-process.d.ts +7 -0
- package/dist/typings/classes/automation-process-manager/validation-rules-automation-process.fixtures.d.ts +23 -0
- package/dist/typings/classes/automation-process-manager/workflows-automation-process.d.ts +8 -0
- package/dist/typings/classes/automation-process-manager/workflows-automation-process.fixtures.d.ts +22 -0
- package/dist/typings/classes/clause-builder.d.ts +15 -0
- package/dist/typings/classes/declarative-filter-eval.d.ts +20 -0
- package/dist/typings/classes/deploy-data/base-bulk-v1-deploy-data.d.ts +16 -0
- package/dist/typings/classes/deploy-data/base-deploy-data.d.ts +12 -0
- package/dist/typings/classes/deploy-data/base-rest-binary-deploy-data.d.ts +6 -0
- package/dist/typings/classes/deploy-data/base-rest-deploy-data.d.ts +6 -0
- package/dist/typings/classes/deploy-data/binary-bulk-v1-deploy-data.d.ts +6 -0
- package/dist/typings/classes/deploy-data/binary-bulk-v1-deploy-data.fixtures.d.ts +62 -0
- package/dist/typings/classes/deploy-data/composite-binary-deploy-data.d.ts +7 -0
- package/dist/typings/classes/deploy-data/delete-bulk-v1-deploy-data.d.ts +6 -0
- package/dist/typings/classes/deploy-data/delete-bulk-v1-deploy-data.fixtures.d.ts +56 -0
- package/dist/typings/classes/deploy-data/rest-simple-deploy-data.d.ts +6 -0
- package/dist/typings/classes/deploy-data/rest-simple-deploy-data.fixtures.d.ts +12 -0
- package/dist/typings/classes/deploy-data/rest-sobject-binary-deploy-data.d.ts +7 -0
- package/dist/typings/classes/deploy-data/rest-sobject-binary-deploy-data.fixtures.d.ts +36 -0
- package/dist/typings/classes/deploy-data/simple-bulk-v1-deploy-data.d.ts +6 -0
- package/dist/typings/classes/deploy-data/simple-bulk-v1-deploy-data.fixtures.d.ts +58 -0
- package/dist/typings/classes/deploy-metadata/base.deploy.d.ts +13 -0
- package/dist/typings/classes/deploy-metadata/binary.deploy.d.ts +8 -0
- package/dist/typings/classes/deploy-metadata/default.deploy.d.ts +15 -0
- package/dist/typings/classes/deploy-metadata/parsers/base.deploy-preparer.d.ts +11 -0
- package/dist/typings/classes/deploy-metadata/parsers/composite.deploy-preparer.d.ts +22 -0
- package/dist/typings/classes/deploy-metadata/parsers/default.deploy-preparer.d.ts +10 -0
- package/dist/typings/classes/deploy-metadata/parsers/factory.deploy-preparer.d.ts +8 -0
- package/dist/typings/classes/error/bulk1-error.d.ts +5 -0
- package/dist/typings/classes/error/error-factory.d.ts +4 -0
- package/dist/typings/classes/error/rest-error.d.ts +11 -0
- package/dist/typings/classes/error/salesforce-deploy-metadata-error.d.ts +5 -0
- package/dist/typings/classes/error/soap-error.d.ts +5 -0
- package/dist/typings/classes/index.d.ts +36 -0
- package/dist/typings/classes/logger.d.ts +4 -0
- package/dist/typings/classes/pk-chunking.d.ts +12 -0
- package/dist/typings/classes/pk-chunking.fixtures.d.ts +5 -0
- package/dist/typings/classes/query-builder.d.ts +82 -0
- package/dist/typings/classes/retrieve-binary/apex-rest-retrieve-binary.d.ts +8 -0
- package/dist/typings/classes/retrieve-binary/base-retrieve-binary.d.ts +9 -0
- package/dist/typings/classes/retrieve-binary/rest-retrieve-binary.d.ts +7 -0
- package/dist/typings/classes/retrieve-data/base-retrieve-data.d.ts +12 -0
- package/dist/typings/classes/retrieve-data/bulk1-custom-pk-retrieve-data.d.ts +26 -0
- package/dist/typings/classes/retrieve-data/bulk1-pk-retrieve-data.d.ts +28 -0
- package/dist/typings/classes/retrieve-data/bulk1-pk-retrieve-data.fixtures.d.ts +38 -0
- package/dist/typings/classes/retrieve-data/bulk1-retrieve-data.d.ts +24 -0
- package/dist/typings/classes/retrieve-data/bulk1-retrieve-data.fixtures.d.ts +37 -0
- package/dist/typings/classes/retrieve-data/bulk2-retrieve-data.d.ts +19 -0
- package/dist/typings/classes/retrieve-data/bulk2-retrieve-data.fixtures.d.ts +8 -0
- package/dist/typings/classes/retrieve-data/custom-rest-retrieve-data.d.ts +12 -0
- package/dist/typings/classes/retrieve-data/custom-rest-retrieve-data.fixtures.d.ts +8 -0
- package/dist/typings/classes/retrieve-data/standard-rest-pk-limit-retrieve-data.d.ts +14 -0
- package/dist/typings/classes/retrieve-data/standard-rest-pk-limit-retrieve-data.fixtures.d.ts +6 -0
- package/dist/typings/classes/retrieve-data/standard-rest-pk-retrieve-data.d.ts +17 -0
- package/dist/typings/classes/retrieve-data/standard-rest-retrieve-data.d.ts +14 -0
- package/dist/typings/classes/retrieve-data/standard-rest-retrieve-data.fixtures.d.ts +6 -0
- package/dist/typings/classes/retrieve-metadata/base.retrieve.d.ts +16 -0
- package/dist/typings/classes/retrieve-metadata/full.retrieve.d.ts +4 -0
- package/dist/typings/classes/retrieve-metadata/handlers/base-metadata.handler.d.ts +11 -0
- package/dist/typings/classes/retrieve-metadata/handlers/bundle-metadata.handler.d.ts +5 -0
- package/dist/typings/classes/retrieve-metadata/handlers/child-metadata.handler.d.ts +7 -0
- package/dist/typings/classes/retrieve-metadata/handlers/default-metadata.handler.d.ts +5 -0
- package/dist/typings/classes/retrieve-metadata/handlers/metadata-handler-factory.d.ts +6 -0
- package/dist/typings/classes/retrieve-metadata/handlers/parent-metadata.handler.d.ts +7 -0
- package/dist/typings/classes/retrieve-metadata/handlers/with-meta-xml-metadata.handler.d.ts +5 -0
- package/dist/typings/classes/retrieve-metadata/list-metadata/base.folder.list-metadata.d.ts +20 -0
- package/dist/typings/classes/retrieve-metadata/list-metadata/base.list-metadata.d.ts +16 -0
- package/dist/typings/classes/retrieve-metadata/list-metadata/default.list-metadata.d.ts +15 -0
- package/dist/typings/classes/retrieve-metadata/list-metadata/folder-list.metadata.d.ts +16 -0
- package/dist/typings/classes/retrieve-metadata/list-metadata/manager.list-metadata.d.ts +13 -0
- package/dist/typings/classes/retrieve-metadata/list-metadata/parent.list-metadata.d.ts +18 -0
- package/dist/typings/classes/retrieve-metadata/list-metadata/record-types.list-metadata.d.ts +15 -0
- package/dist/typings/classes/retrieve-metadata/list-metadata/sub-folder-list.metadata.d.ts +5 -0
- package/dist/typings/classes/retrieve-metadata/partial.retrieve.d.ts +9 -0
- package/dist/typings/classes/retrieve-metadata/retrievers/base.retriever.d.ts +11 -0
- package/dist/typings/classes/retrieve-metadata/retrievers/default.retriever.d.ts +7 -0
- package/dist/typings/classes/retrieve-metadata/retrievers/read.retriever.d.ts +7 -0
- package/dist/typings/classes/retrieve-metadata/retrievers/retriever-manager.d.ts +21 -0
- package/dist/typings/classes/salesforce-error.class.d.ts +5 -0
- package/dist/typings/commands/index.d.ts +13 -0
- package/dist/typings/commands/sfdx/base-sfdx.command.d.ts +9 -0
- package/dist/typings/commands/sfdx/config-set-sfdx.command.d.ts +6 -0
- package/dist/typings/commands/sfdx/create-project-sfdx.command.d.ts +6 -0
- package/dist/typings/commands/sfdx/describe-metadata-sfdx.command.d.ts +6 -0
- package/dist/typings/commands/sfdx/list-metadata-sfdx.command.d.ts +6 -0
- package/dist/typings/commands/sfdx/source-retrieve-sfdx.command.d.ts +6 -0
- package/dist/typings/commands/soap/base-soap.command.d.ts +12 -0
- package/dist/typings/commands/soap/check-deploy-status-soap.command.d.ts +11 -0
- package/dist/typings/commands/soap/check-retrieve-status-soap.command.d.ts +11 -0
- package/dist/typings/commands/soap/deploy-soap-command.d.ts +12 -0
- package/dist/typings/commands/soap/deploy-soap-compose.d.ts +12 -0
- package/dist/typings/commands/soap/describe-metadata-soap.command.d.ts +11 -0
- package/dist/typings/commands/soap/list-metadata-soap.command.d.ts +11 -0
- package/dist/typings/commands/soap/list-metadata-soap.compose.d.ts +14 -0
- package/dist/typings/commands/soap/read-metadata-soap.command.d.ts +10 -0
- package/dist/typings/commands/soap/read-metadata-soap.compose.d.ts +14 -0
- package/dist/typings/commands/soap/retrieve-soap-command.d.ts +10 -0
- package/dist/typings/commands/soap/retrieve-soap.compose.d.ts +13 -0
- package/dist/typings/constants/bulk.constants.d.ts +5 -0
- package/dist/typings/constants/business-account-standard-fields.constants.d.ts +1 -0
- package/dist/typings/constants/composite.constants.d.ts +3 -0
- package/dist/typings/constants/custom-rest-body.constants.d.ts +3 -0
- package/dist/typings/constants/fields.constants.d.ts +3 -0
- package/dist/typings/constants/index.d.ts +11 -0
- package/dist/typings/constants/metadata.constants.d.ts +48 -0
- package/dist/typings/constants/person-account-standard-fields.constants.d.ts +1 -0
- package/dist/typings/constants/rest-query.constants.d.ts +3 -0
- package/dist/typings/constants/salesforce.constants.d.ts +51 -0
- package/dist/typings/constants/sfdx.constants.d.ts +4 -0
- package/dist/typings/constants/sobject.constants.d.ts +17 -0
- package/dist/typings/enums/bulk1.enums.d.ts +42 -0
- package/dist/typings/enums/bulk2.enums.d.ts +23 -0
- package/dist/typings/enums/declarative-filter.enums.d.ts +15 -0
- package/dist/typings/enums/deploy.metadata.enums.d.ts +20 -0
- package/dist/typings/enums/describe.enums.d.ts +5 -0
- package/dist/typings/enums/field-type.enum.d.ts +29 -0
- package/dist/typings/enums/index.d.ts +9 -0
- package/dist/typings/enums/organization-type.enum.d.ts +4 -0
- package/dist/typings/enums/query.enums.d.ts +4 -0
- package/dist/typings/enums/retreive.metadata.enums.d.ts +20 -0
- package/dist/typings/enums/soap.enums.d.ts +9 -0
- package/dist/typings/enums/type.metadata.enum.d.ts +120 -0
- package/dist/typings/index.d.ts +7 -0
- package/dist/typings/interfaces/axios-interceptor.interfaces.d.ts +4 -0
- package/dist/typings/interfaces/bulk1.interfaces.d.ts +52 -0
- package/dist/typings/interfaces/bulk2.interfaces.d.ts +36 -0
- package/dist/typings/interfaces/composite.interfaces.d.ts +11 -0
- package/dist/typings/interfaces/declarative-filter.interfaces.d.ts +6 -0
- package/dist/typings/interfaces/deploy.interfaces.d.ts +75 -0
- package/dist/typings/interfaces/describe.interfaces.d.ts +166 -0
- package/dist/typings/interfaces/index.d.ts +20 -0
- package/dist/typings/interfaces/internal/tooling-api.interfaces.d.ts +33 -0
- package/dist/typings/interfaces/knowledge.interfaces.d.ts +16 -0
- package/dist/typings/interfaces/limit.interfaces.d.ts +202 -0
- package/dist/typings/interfaces/metadata/base.interfaces.d.ts +25 -0
- package/dist/typings/interfaces/metadata/config.interfaces.d.ts +7 -0
- package/dist/typings/interfaces/metadata/deploy-metadata.interfaces.d.ts +109 -0
- package/dist/typings/interfaces/metadata/describe-metadata.interfaces.d.ts +42 -0
- package/dist/typings/interfaces/metadata/list-metadata.interfaces.d.ts +49 -0
- package/dist/typings/interfaces/metadata/logger.interfaces.d.ts +4 -0
- package/dist/typings/interfaces/metadata/read-metadata.interfaces.d.ts +27 -0
- package/dist/typings/interfaces/metadata/retrieve-metadata.interfaces.d.ts +95 -0
- package/dist/typings/interfaces/metadata/type.interfaces.d.ts +207 -0
- package/dist/typings/interfaces/query.interfaces.d.ts +6 -0
- package/dist/typings/interfaces/rest.interfaces.d.ts +4 -0
- package/dist/typings/interfaces/retrieve-binary.interfaces.d.ts +18 -0
- package/dist/typings/interfaces/retrieve.interfaces.d.ts +61 -0
- package/dist/typings/interfaces/token.interfaces.d.ts +13 -0
- package/dist/typings/services/apex-rest.service.d.ts +4 -0
- package/dist/typings/services/bulk1.service.d.ts +16 -0
- package/dist/typings/services/bulk2.service.d.ts +7 -0
- package/dist/typings/services/composite.service.d.ts +8 -0
- package/dist/typings/services/crud.service.d.ts +4 -0
- package/dist/typings/services/describe.service.d.ts +7 -0
- package/dist/typings/services/index.d.ts +12 -0
- package/dist/typings/services/knowledge.service.d.ts +6 -0
- package/dist/typings/services/limit.service.d.ts +5 -0
- package/dist/typings/services/oauth.service.d.ts +6 -0
- package/dist/typings/services/packages.service.d.ts +18 -0
- package/dist/typings/services/query.service.d.ts +6 -0
- package/dist/typings/services/rest.service.d.ts +8 -0
- package/dist/typings/utils/array.utils.d.ts +3 -0
- package/dist/typings/utils/axios-instance.utils.d.ts +6 -0
- package/dist/typings/utils/bulk.utils.d.ts +5 -0
- package/dist/typings/utils/describe.utils.d.ts +5 -0
- package/dist/typings/utils/field.utils.d.ts +26 -0
- package/dist/typings/utils/index.d.ts +12 -0
- package/dist/typings/utils/info.utils.d.ts +3 -0
- package/dist/typings/utils/object-utils.d.ts +4 -0
- package/dist/typings/utils/organization.utils.d.ts +4 -0
- package/dist/typings/utils/promise.utils.d.ts +3 -0
- package/dist/typings/utils/query.utils.d.ts +11 -0
- package/dist/typings/utils/rest-query.utils.d.ts +4 -0
- package/dist/typings/utils/salesforce.utils.d.ts +8 -0
- package/dist/typings/utils/sfdx.utils.d.ts +3 -0
- package/dist/typings/utils/sobject.utils.d.ts +29 -0
- package/dist/typings/utils/test.utils.d.ts +4 -0
- package/dist/typings/utils/timer.utils.d.ts +3 -0
- package/package.json +89 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { ChildElementName, ParentComponentType } from '../../enums/type.metadata.enum';
|
|
2
|
+
export declare type ParentComponent = {
|
|
3
|
+
[parentObject in ParentComponentType | string]: {
|
|
4
|
+
[childElement in ChildElementName | string]: ChildElement[];
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare type ChildComponent = {
|
|
8
|
+
[parentObject in ParentComponentType | string]: {
|
|
9
|
+
[childElement in ChildElementName | string]: ChildElement;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare type ChildElement = {
|
|
13
|
+
fullName?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare type ProfileObject = {
|
|
17
|
+
Profile: Profile;
|
|
18
|
+
};
|
|
19
|
+
export declare type Profile = {
|
|
20
|
+
applicationVisibilities?: {
|
|
21
|
+
application: string;
|
|
22
|
+
default: boolean;
|
|
23
|
+
visible: boolean;
|
|
24
|
+
}[];
|
|
25
|
+
categoryGroupVisibilities?: {
|
|
26
|
+
dataCategories: string[];
|
|
27
|
+
dataCategoryGroup: string;
|
|
28
|
+
visibility: string;
|
|
29
|
+
}[];
|
|
30
|
+
classAccesses?: {
|
|
31
|
+
apexClass: string;
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
}[];
|
|
34
|
+
customMetadataTypeAccesses?: {
|
|
35
|
+
name: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
}[];
|
|
38
|
+
customPermissions?: {
|
|
39
|
+
name: string;
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
}[];
|
|
42
|
+
customSettingAccesses?: {
|
|
43
|
+
name: string;
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
}[];
|
|
46
|
+
externalDataSourceAccesses?: {
|
|
47
|
+
externalDataSource: string;
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
}[];
|
|
50
|
+
fieldLevelSecurities?: {
|
|
51
|
+
field: string;
|
|
52
|
+
editable: boolean;
|
|
53
|
+
hidden: boolean;
|
|
54
|
+
readable: boolean;
|
|
55
|
+
}[];
|
|
56
|
+
fieldPermissions?: {
|
|
57
|
+
field: string;
|
|
58
|
+
editable: boolean;
|
|
59
|
+
hidden: boolean;
|
|
60
|
+
readable: boolean;
|
|
61
|
+
}[];
|
|
62
|
+
flowAccesses?: {
|
|
63
|
+
flow: string;
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
}[];
|
|
66
|
+
layoutAssignments?: {
|
|
67
|
+
layout: string;
|
|
68
|
+
recordType: string;
|
|
69
|
+
}[];
|
|
70
|
+
loginFlows?: {
|
|
71
|
+
flow: string;
|
|
72
|
+
flowtype: string;
|
|
73
|
+
friendlyname: string;
|
|
74
|
+
uiLoginFlowType: string;
|
|
75
|
+
useLightningRuntime: boolean;
|
|
76
|
+
vfFlowPage: string;
|
|
77
|
+
vfFlowPageTitle: string;
|
|
78
|
+
}[];
|
|
79
|
+
objectPermissions?: {
|
|
80
|
+
object: string;
|
|
81
|
+
allowCreate: boolean;
|
|
82
|
+
allowDelete: boolean;
|
|
83
|
+
allowEdit: boolean;
|
|
84
|
+
allowRead: boolean;
|
|
85
|
+
modifyAllRecords: boolean;
|
|
86
|
+
viewAllRecords: boolean;
|
|
87
|
+
}[];
|
|
88
|
+
pageAccesses?: {
|
|
89
|
+
apexPage: string;
|
|
90
|
+
enabled: boolean;
|
|
91
|
+
}[];
|
|
92
|
+
recordTypeVisibilities?: {
|
|
93
|
+
recordType: string;
|
|
94
|
+
default: boolean;
|
|
95
|
+
personAccountDefault: boolean;
|
|
96
|
+
visible: boolean;
|
|
97
|
+
}[];
|
|
98
|
+
tabVisibilities?: {
|
|
99
|
+
tab: string;
|
|
100
|
+
visibility: string;
|
|
101
|
+
}[];
|
|
102
|
+
};
|
|
103
|
+
export declare type Bot = {
|
|
104
|
+
botVersions: BotVersion[];
|
|
105
|
+
fullName: string;
|
|
106
|
+
};
|
|
107
|
+
export declare type BotVersion = {
|
|
108
|
+
fullName: string;
|
|
109
|
+
};
|
|
110
|
+
export declare type TranslationsObject = {
|
|
111
|
+
Translations: Translations;
|
|
112
|
+
};
|
|
113
|
+
export declare type Translations = {
|
|
114
|
+
bots: Bot[];
|
|
115
|
+
customApplications?: {
|
|
116
|
+
label: string;
|
|
117
|
+
name: string;
|
|
118
|
+
}[];
|
|
119
|
+
customLabels?: {
|
|
120
|
+
label: string;
|
|
121
|
+
name: string;
|
|
122
|
+
}[];
|
|
123
|
+
customPageWebLinks?: {
|
|
124
|
+
label: string;
|
|
125
|
+
name: string;
|
|
126
|
+
}[];
|
|
127
|
+
customTabs?: {
|
|
128
|
+
label: string;
|
|
129
|
+
name: string;
|
|
130
|
+
}[];
|
|
131
|
+
flowDefinitions?: {
|
|
132
|
+
label: string;
|
|
133
|
+
fullName: string;
|
|
134
|
+
}[];
|
|
135
|
+
prompts?: {
|
|
136
|
+
description: string;
|
|
137
|
+
label: string;
|
|
138
|
+
name: string;
|
|
139
|
+
}[];
|
|
140
|
+
quickActions?: {
|
|
141
|
+
aspect: string;
|
|
142
|
+
label: string;
|
|
143
|
+
name: string;
|
|
144
|
+
}[];
|
|
145
|
+
reportTypes?: {
|
|
146
|
+
label: string;
|
|
147
|
+
name: string;
|
|
148
|
+
description: string;
|
|
149
|
+
}[];
|
|
150
|
+
scontrols?: {
|
|
151
|
+
label: string;
|
|
152
|
+
name: string;
|
|
153
|
+
}[];
|
|
154
|
+
};
|
|
155
|
+
export declare type CustomObjectTranslationObject = {
|
|
156
|
+
CustomObjectTranslation: CustomObjectTranslation;
|
|
157
|
+
};
|
|
158
|
+
export declare type CustomObjectTranslation = {
|
|
159
|
+
fields?: {
|
|
160
|
+
description: string;
|
|
161
|
+
help: string;
|
|
162
|
+
label: string;
|
|
163
|
+
name: string;
|
|
164
|
+
relationshipLabel: string;
|
|
165
|
+
};
|
|
166
|
+
fieldSets?: {
|
|
167
|
+
label: string;
|
|
168
|
+
name: string;
|
|
169
|
+
};
|
|
170
|
+
layouts?: {
|
|
171
|
+
layout: string;
|
|
172
|
+
layoutType: string;
|
|
173
|
+
};
|
|
174
|
+
namedFilters?: {
|
|
175
|
+
errorMessage: string;
|
|
176
|
+
informationalMessage: string;
|
|
177
|
+
name: string;
|
|
178
|
+
};
|
|
179
|
+
quickActions?: {
|
|
180
|
+
aspect: string;
|
|
181
|
+
label: string;
|
|
182
|
+
name: string;
|
|
183
|
+
};
|
|
184
|
+
recordTypes?: {
|
|
185
|
+
label: string;
|
|
186
|
+
name: string;
|
|
187
|
+
description: string;
|
|
188
|
+
};
|
|
189
|
+
sharingReasons?: {
|
|
190
|
+
label: string;
|
|
191
|
+
name: string;
|
|
192
|
+
};
|
|
193
|
+
validationRules?: {
|
|
194
|
+
errorMessage: string;
|
|
195
|
+
name: string;
|
|
196
|
+
};
|
|
197
|
+
webLinks?: {
|
|
198
|
+
label: string;
|
|
199
|
+
name: string;
|
|
200
|
+
};
|
|
201
|
+
workflowTasks?: {
|
|
202
|
+
description: string;
|
|
203
|
+
subject: string;
|
|
204
|
+
name: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
export declare type MergeTypes = ProfileObject | CustomObjectTranslationObject | TranslationsObject;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import * as stream from 'stream';
|
|
4
|
+
export interface RetrieveBinaryRequest {
|
|
5
|
+
objectName: string;
|
|
6
|
+
fields: string[];
|
|
7
|
+
instance: AxiosInstance;
|
|
8
|
+
}
|
|
9
|
+
export interface RetrieveBinaryRequestRest extends RetrieveBinaryRequest {
|
|
10
|
+
api: string;
|
|
11
|
+
}
|
|
12
|
+
export interface RetrieveBinaryRequestApexRest extends RetrieveBinaryRequest {
|
|
13
|
+
endpoint: string;
|
|
14
|
+
}
|
|
15
|
+
export interface RetrieveBinaryResult {
|
|
16
|
+
id: string;
|
|
17
|
+
values: Record<string, stream.Readable>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import QueryBuilder from '../classes/query-builder';
|
|
3
|
+
import { SortDirection } from '../enums/query.enums';
|
|
4
|
+
export interface RetrieveRequest {
|
|
5
|
+
instance: AxiosInstance;
|
|
6
|
+
queryBuilder: QueryBuilder;
|
|
7
|
+
}
|
|
8
|
+
export interface RetrieveRequestBulk2 extends RetrieveRequest {
|
|
9
|
+
pollInterval: number;
|
|
10
|
+
maxRecords: number;
|
|
11
|
+
api: string;
|
|
12
|
+
indexDetails?: RetrieveIndexDetails;
|
|
13
|
+
}
|
|
14
|
+
export interface RetrieveRequestCustomRest extends RetrieveRequest {
|
|
15
|
+
endpoint: string;
|
|
16
|
+
maxRecords: number;
|
|
17
|
+
indexDetails: RetrieveIndexDetails;
|
|
18
|
+
}
|
|
19
|
+
export interface RetrieveRequestStandardRestPkLimit extends RetrieveRequest {
|
|
20
|
+
chunkQuerySize: number;
|
|
21
|
+
maxRecords?: number;
|
|
22
|
+
indexDetails: RetrieveIndexDetails;
|
|
23
|
+
api: string;
|
|
24
|
+
}
|
|
25
|
+
export interface RetrieveRequestStandardRest extends RetrieveRequest {
|
|
26
|
+
api: string;
|
|
27
|
+
maxRecords?: number;
|
|
28
|
+
indexDetails: RetrieveIndexDetails;
|
|
29
|
+
}
|
|
30
|
+
export interface RetrieveRequestStandardRestPk extends RetrieveRequest {
|
|
31
|
+
api: string;
|
|
32
|
+
chunkQuerySize?: number;
|
|
33
|
+
maxRecords?: number;
|
|
34
|
+
indexDetails?: Required<Pick<RetrieveIndexDetails, 'lastRetrievedValue'>>;
|
|
35
|
+
}
|
|
36
|
+
export interface RetrieveRequestBulk1PK extends RetrieveRequest {
|
|
37
|
+
api: string;
|
|
38
|
+
pollInterval: number;
|
|
39
|
+
objectName: string;
|
|
40
|
+
}
|
|
41
|
+
export interface RetrieveRequestBulk1 extends RetrieveRequest {
|
|
42
|
+
api: string;
|
|
43
|
+
pollInterval: number;
|
|
44
|
+
objectName: string;
|
|
45
|
+
indexDetails?: RetrieveIndexDetails;
|
|
46
|
+
}
|
|
47
|
+
export interface RetrieveRequestBulk1CustomPk extends RetrieveRequest {
|
|
48
|
+
api: string;
|
|
49
|
+
pollInterval: number;
|
|
50
|
+
objectName: string;
|
|
51
|
+
queryChunkSize: number;
|
|
52
|
+
indexDetails?: Required<Pick<RetrieveIndexDetails, 'lastRetrievedValue'>>;
|
|
53
|
+
}
|
|
54
|
+
export interface RetrieveIndexDetails {
|
|
55
|
+
field: string;
|
|
56
|
+
direction: SortDirection;
|
|
57
|
+
lastRetrievedValue?: string | number;
|
|
58
|
+
}
|
|
59
|
+
export interface RetrieveResult {
|
|
60
|
+
records: Record<string, any>[];
|
|
61
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SalesforceRefreshTokenResponse {
|
|
2
|
+
access_token: string;
|
|
3
|
+
signature: string;
|
|
4
|
+
instance_url: string;
|
|
5
|
+
scope: string;
|
|
6
|
+
id: string;
|
|
7
|
+
token_type: string;
|
|
8
|
+
issued_at: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SalesforceCodeTokenResponse extends SalesforceRefreshTokenResponse {
|
|
11
|
+
refresh_token?: string;
|
|
12
|
+
id_token: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
3
|
+
import { Bulk1BatchDetails, Bulk1JobClose, Bulk1JobDetails, Bulk1JobPayload } from '../interfaces/bulk1.interfaces';
|
|
4
|
+
import * as stream from 'stream';
|
|
5
|
+
export default class Bulk1Service {
|
|
6
|
+
static createJob(instance: AxiosInstance, payload: Bulk1JobPayload, config: AxiosRequestConfig, api: string): Promise<Bulk1JobDetails>;
|
|
7
|
+
static createBatch(instance: AxiosInstance, payload: string | ArrayBuffer, config: AxiosRequestConfig, jobId: string, api: string): Promise<Bulk1BatchDetails>;
|
|
8
|
+
static getBatchInfo(instance: AxiosInstance, config: AxiosRequestConfig, jobId: string, batchId: string, api: string): Promise<Bulk1BatchDetails>;
|
|
9
|
+
static getAllBatchInfo(instance: AxiosInstance, config: AxiosRequestConfig, jobId: string, api: string): Promise<Bulk1BatchDetails[]>;
|
|
10
|
+
static closeJob(instance: AxiosInstance, config: AxiosRequestConfig, payload: Bulk1JobClose, jobId: string, api: string): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* @returns Array of the results OR exact result csv
|
|
13
|
+
*/
|
|
14
|
+
static resultBatch(instance: AxiosInstance, config: AxiosRequestConfig, jobId: string, batchId: string, api: string): Promise<string | string[]>;
|
|
15
|
+
static result(instance: AxiosInstance, config: AxiosRequestConfig, jobId: string, batchId: string, resultId: string, api: string): Promise<string | stream.Readable>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { Bulk2CreateJobQueryPayload, Bulk2JobQuery, Bulk2JobQueryResult, Bulk2JobQueryStatus } from '../interfaces/bulk2.interfaces';
|
|
3
|
+
export default class Bulk2Service {
|
|
4
|
+
static createBulkJobQuery(instance: AxiosInstance, config: AxiosRequestConfig, payload: Bulk2CreateJobQueryPayload, api: string): Promise<Bulk2JobQuery>;
|
|
5
|
+
static statusBulkJobQuery(instance: AxiosInstance, config: AxiosRequestConfig, jobId: string, api: string): Promise<Bulk2JobQueryStatus>;
|
|
6
|
+
static resultBulkQuery(instance: AxiosInstance, config: AxiosRequestConfig, queryLocator: string, jobId: string, maxRecords: number, api: string): Promise<Bulk2JobQueryResult>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { CompositeSubRequest, CompositeResponse } from '../interfaces/composite.interfaces';
|
|
3
|
+
export default class CompositeService {
|
|
4
|
+
static composite(instance: AxiosInstance, config: AxiosRequestConfig, requests: CompositeSubRequest[], allOrNone: boolean, api: string): Promise<CompositeResponse[]>;
|
|
5
|
+
static subRequestDescribeObject(objectName: string, referenceId: string, api: string): CompositeSubRequest;
|
|
6
|
+
static subRequestQuery(referenceId: string, query: string, api: string): CompositeSubRequest;
|
|
7
|
+
static getReferenceId(): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { DescribeObject, GlobalDescribe } from '../interfaces/describe.interfaces';
|
|
3
|
+
export default class DescribeService {
|
|
4
|
+
static global(instance: AxiosInstance, config: AxiosRequestConfig, api: string): Promise<GlobalDescribe>;
|
|
5
|
+
static object(instance: AxiosInstance, config: AxiosRequestConfig, objectName: string, api: string): Promise<DescribeObject>;
|
|
6
|
+
static objects(instance: AxiosInstance, config: AxiosRequestConfig, objectsName: string[], api: string): Promise<DescribeObject[]>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import QueryService from './query.service';
|
|
2
|
+
import Bulk1Service from './bulk1.service';
|
|
3
|
+
import Bulk2Service from './bulk2.service';
|
|
4
|
+
import CrudService from './crud.service';
|
|
5
|
+
import ApexRestService from './apex-rest.service';
|
|
6
|
+
import LimitService from './limit.service';
|
|
7
|
+
import CompositeService from './composite.service';
|
|
8
|
+
import DescribeService from './describe.service';
|
|
9
|
+
import KnowledgeService from './knowledge.service';
|
|
10
|
+
import PackagesService from './packages.service';
|
|
11
|
+
import OauthService from './oauth.service';
|
|
12
|
+
export { QueryService, Bulk1Service, Bulk2Service, KnowledgeService, CompositeService, DescribeService, CrudService, LimitService, ApexRestService, PackagesService, OauthService, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { KnowledgeArchive, KnowledgePublish, KnowledgeResponse } from '../interfaces/knowledge.interfaces';
|
|
3
|
+
export default class KnowledgeService {
|
|
4
|
+
static archive(instance: AxiosInstance, config: AxiosRequestConfig, request: KnowledgeArchive, api: string): Promise<KnowledgeResponse[]>;
|
|
5
|
+
static publish(instance: AxiosInstance, config: AxiosRequestConfig, request: KnowledgePublish, api: string): Promise<KnowledgeResponse[]>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { LimitInterfaces } from '../interfaces/limit.interfaces';
|
|
3
|
+
export default class LimitService {
|
|
4
|
+
static limits(instance: AxiosInstance, config: AxiosRequestConfig, api: string): Promise<LimitInterfaces>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OrganizationType } from '../enums';
|
|
2
|
+
import { SalesforceCodeTokenResponse, SalesforceRefreshTokenResponse } from '../interfaces';
|
|
3
|
+
export default class OauthService {
|
|
4
|
+
static getTokenByRefreshToken(organizationType: OrganizationType, client_id: string, client_secret: string, refresh_token: string): Promise<SalesforceRefreshTokenResponse>;
|
|
5
|
+
static getTokenByCodeAuthorization(organizationType: OrganizationType, client_id: string, client_secret: string, code: string, redirect_uri: string): Promise<SalesforceCodeTokenResponse>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { ToolingApiPackageInstallRequestByIdResponse } from '../interfaces/internal/tooling-api.interfaces';
|
|
3
|
+
interface InstallPackageResult {
|
|
4
|
+
installationId: string;
|
|
5
|
+
}
|
|
6
|
+
interface FetchStatusResult {
|
|
7
|
+
status: ToolingApiPackageInstallRequestByIdResponse['Status'];
|
|
8
|
+
}
|
|
9
|
+
interface FindLatestInstallationIdForPackageResult {
|
|
10
|
+
installationId: string;
|
|
11
|
+
}
|
|
12
|
+
export default class PackagesService {
|
|
13
|
+
static isInstalled(instance: AxiosInstance, config: AxiosRequestConfig, packageId: string, api: string): Promise<boolean>;
|
|
14
|
+
static installPackage(instance: AxiosInstance, config: AxiosRequestConfig, packageId: string, api: string): Promise<InstallPackageResult>;
|
|
15
|
+
static fetchStatus(instance: AxiosInstance, config: AxiosRequestConfig, installationId: string, api: string): Promise<FetchStatusResult>;
|
|
16
|
+
static findLatestInstallationIdForPackage(instance: AxiosInstance, config: AxiosRequestConfig, packageId: string, api: string): Promise<FindLatestInstallationIdForPackageResult>;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { QueryResponse } from '../interfaces/query.interfaces';
|
|
3
|
+
export default class QueryService {
|
|
4
|
+
static execute<R = Record<string, any>>(instance: AxiosInstance, config: AxiosRequestConfig, query: string, isTooling: boolean, api: string): Promise<QueryResponse<R>>;
|
|
5
|
+
static executeMore<R = Record<string, any>>(instance: AxiosInstance, config: AxiosRequestConfig, queryLocator: string): Promise<QueryResponse<R>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { DeployDataResult, CompositeSaveResult, CompositeDeployPayload } from '../interfaces/deploy.interfaces';
|
|
3
|
+
import FormData from 'form-data';
|
|
4
|
+
export default class RestService {
|
|
5
|
+
static createSObject(instance: AxiosInstance, config: AxiosRequestConfig, objectName: string, payload: FormData, api: string): Promise<DeployDataResult>;
|
|
6
|
+
static patchSObject(instance: AxiosInstance, config: AxiosRequestConfig, objectName: string, recordId: string, payload: FormData, api: string): Promise<DeployDataResult>;
|
|
7
|
+
static sObjectCollections(instance: AxiosInstance, config: AxiosRequestConfig, objectName: string, externalIdField: string, api: string, payload: CompositeDeployPayload | FormData): Promise<CompositeSaveResult[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { AxiosInterceptor } from '../interfaces/axios-interceptor.interfaces';
|
|
3
|
+
import { AuthorizationManager } from '../classes';
|
|
4
|
+
export default class AxiosInstanceUtils {
|
|
5
|
+
static create(authorizationManager: AuthorizationManager, interceptors?: AxiosInterceptor[], config?: AxiosRequestConfig, ignoreRetryErrorCodes?: string[]): Promise<AxiosInstance>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FieldType } from '../enums/field-type.enum';
|
|
2
|
+
import { DescribeObject } from '../interfaces/describe.interfaces';
|
|
3
|
+
import { AxiosInstance } from 'axios';
|
|
4
|
+
export default class FieldUtils {
|
|
5
|
+
static isPersonAccount(fieldName: string): boolean;
|
|
6
|
+
static isBusinessAccount(fieldName: string): boolean;
|
|
7
|
+
static isReference(type: FieldType, relationshipOrder: number): boolean;
|
|
8
|
+
static getBodyLengthField(objectName: string, binaryField: string): string;
|
|
9
|
+
static isBodyLengthField(objectName: string, fieldName: string): boolean;
|
|
10
|
+
static isCompound(fieldType: FieldType): boolean;
|
|
11
|
+
static getCompound({ fields, name }: DescribeObject): Set<string>;
|
|
12
|
+
/**
|
|
13
|
+
* @param instance - Axios Instance
|
|
14
|
+
* @param api - Salesforce api
|
|
15
|
+
* @param mapObjectKey - Map of object key and object name {'001' => 'Account', '003' => 'Contact'}
|
|
16
|
+
* @param ids - Salesforce id for check if exists or not
|
|
17
|
+
*/
|
|
18
|
+
static getExistId(instance: AxiosInstance, api: string, mapObjectKey: Map<string, string>, ids: string[]): Promise<string[]>;
|
|
19
|
+
/**
|
|
20
|
+
* @param mapObjectKey - Map of object key and object name {'001' => 'Account', '003' => 'Contact'}
|
|
21
|
+
* @param ids - Salesforce id for check if exists or not
|
|
22
|
+
*
|
|
23
|
+
* @return Map of object name and ids {'Account' => ['id1', 'id2'], 'Contact' => ['id1', 'id2']}
|
|
24
|
+
*/
|
|
25
|
+
static getIdsByObjectName(mapObjectKey: Map<string, string>, ids: string[]): Map<string, string[]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import SObjectUtils from './sobject.utils';
|
|
2
|
+
import FieldUtils from './field.utils';
|
|
3
|
+
import AxiosInstanceUtils from './axios-instance.utils';
|
|
4
|
+
import SalesforceUtils from './salesforce.utils';
|
|
5
|
+
import BulkUtils from './bulk.utils';
|
|
6
|
+
import RestQueryUtils from './rest-query.utils';
|
|
7
|
+
import SFDXUtils from './sfdx.utils';
|
|
8
|
+
import QueryUtils from './query.utils';
|
|
9
|
+
import InfoUtils from './info.utils';
|
|
10
|
+
import TimerUtils from './timer.utils';
|
|
11
|
+
import OrganizationUtils from './organization.utils';
|
|
12
|
+
export { SObjectUtils, FieldUtils, AxiosInstanceUtils, SalesforceUtils, BulkUtils, RestQueryUtils, SFDXUtils, QueryUtils, InfoUtils, TimerUtils, OrganizationUtils, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QueryBuilder } from '../classes';
|
|
2
|
+
export default class QueryUtils {
|
|
3
|
+
static getMaxInOperatorItemsSize(builder: QueryBuilder, field: string, approximateItemSize: number, encode?: boolean): number;
|
|
4
|
+
/**
|
|
5
|
+
* Encode value to url
|
|
6
|
+
*/
|
|
7
|
+
static encode(value: string): string;
|
|
8
|
+
static convertToBoolean(input: boolean): string;
|
|
9
|
+
static escapeString(input: string): string;
|
|
10
|
+
static convertValue<T>(input: T): T | string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
export default class SalesforceUtils {
|
|
3
|
+
static isAxiosError(error: Error): error is AxiosError;
|
|
4
|
+
static isBulk1Url(url: string): boolean;
|
|
5
|
+
static isQueryUrl(url: string): boolean;
|
|
6
|
+
static isSoapUrl(url: string): boolean;
|
|
7
|
+
static extractActualContentTypeFromHeader(contentTypeHeader: string): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { SortDirection } from '../enums/query.enums';
|
|
3
|
+
import { DescribeObject } from '../interfaces/describe.interfaces';
|
|
4
|
+
export default class SObjectUtils {
|
|
5
|
+
static isBig(name: string): boolean;
|
|
6
|
+
static isExternal(name: string): boolean;
|
|
7
|
+
static isCustomMetadataType(name: string): boolean;
|
|
8
|
+
static isHistoricalData(name: string): boolean;
|
|
9
|
+
static isBinaryObject(objectDescribe: DescribeObject): boolean;
|
|
10
|
+
static isTag(name: string): boolean;
|
|
11
|
+
static isFeedEntity(associateEntityType: string): boolean;
|
|
12
|
+
static isHistoryEntity(associateEntityType: string): boolean;
|
|
13
|
+
static isShareEntity(associateEntityType: string): boolean;
|
|
14
|
+
static isIndexedByIdStandard(name: string): boolean;
|
|
15
|
+
static isRequiredFilterByParent(name: string): boolean;
|
|
16
|
+
static getDetailsRequiredFilterByParent(name: string): {
|
|
17
|
+
field: string;
|
|
18
|
+
parentObject: string;
|
|
19
|
+
};
|
|
20
|
+
static isRequiredFilterInChild(name: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @returns object's names that are indexable by Id field
|
|
23
|
+
*/
|
|
24
|
+
static fetchObjectsIndexableById(instance: AxiosInstance, config: AxiosRequestConfig, objectsNames: string[], api: string): Promise<string[]>;
|
|
25
|
+
static fetchIndexField(instance: AxiosInstance, objectName: string, api: string): Promise<{
|
|
26
|
+
field: string;
|
|
27
|
+
direction: SortDirection;
|
|
28
|
+
}>;
|
|
29
|
+
}
|