zcw-shared 2.4.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/functions/android/integrateThirdPartyModule.d.ts +5 -0
- package/dist/functions/android/integrateThirdPartyModule.js +70 -0
- package/dist/functions/android/integrateThirdPartyModule.js.map +1 -1
- package/dist/functions/android/integrateUniPushAndroid.d.ts +23 -0
- package/dist/functions/android/integrateUniPushAndroid.js +266 -0
- package/dist/functions/android/integrateUniPushAndroid.js.map +1 -0
- package/dist/functions/api/auth.d.ts +14 -0
- package/dist/functions/api/auth.js +109 -0
- package/dist/functions/api/auth.js.map +1 -0
- package/dist/functions/api/schemas/auth.schema.d.ts +363 -0
- package/dist/functions/api/schemas/auth.schema.js +39 -0
- package/dist/functions/api/schemas/auth.schema.js.map +1 -0
- package/dist/functions/api/schemas/video.schema.d.ts +391 -0
- package/dist/functions/api/schemas/video.schema.js +55 -0
- package/dist/functions/api/schemas/video.schema.js.map +1 -0
- package/dist/functions/api/video.d.ts +62 -0
- package/dist/functions/api/video.js +243 -0
- package/dist/functions/api/video.js.map +1 -0
- package/dist/functions/browser/isElectron.d.ts +5 -0
- package/dist/functions/browser/isElectron.js +4 -0
- package/dist/functions/browser/isElectron.js.map +1 -0
- package/dist/functions/dom/isTextTruncated.d.ts +4 -0
- package/dist/functions/dom/isTextTruncated.js +16 -0
- package/dist/functions/dom/isTextTruncated.js.map +1 -0
- package/dist/functions/dom/localFileInput.d.ts +14 -0
- package/dist/functions/dom/localFileInput.js +27 -0
- package/dist/functions/dom/localFileInput.js.map +1 -0
- package/dist/functions/file/getIconfontNameByExtension.js +53 -56
- package/dist/functions/file/getIconfontNameByExtension.js.map +1 -1
- package/dist/functions/im/parseImMentionSegments.d.ts +15 -0
- package/dist/functions/im/parseImMentionSegments.js +56 -0
- package/dist/functions/im/parseImMentionSegments.js.map +1 -0
- package/dist/functions/ios/integrateThirdPartyModule.d.ts +9 -1
- package/dist/functions/ios/integrateThirdPartyModule.js +112 -2
- package/dist/functions/ios/integrateThirdPartyModule.js.map +1 -1
- package/dist/functions/ios/integrateUniPushIOS.d.ts +18 -0
- package/dist/functions/ios/integrateUniPushIOS.js +200 -0
- package/dist/functions/ios/integrateUniPushIOS.js.map +1 -0
- package/dist/functions/oss/uploadViaSignedPut.d.ts +35 -0
- package/dist/functions/oss/uploadViaSignedPut.js +86 -0
- package/dist/functions/oss/uploadViaSignedPut.js.map +1 -0
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js +38 -0
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +1 -1
- package/dist/functions/uniapp/app-plus/buildIOSApp.js +38 -0
- package/dist/functions/uniapp/app-plus/buildIOSApp.js.map +1 -1
- package/dist/vue-hooks/dom/useAppendToBody.d.ts +25 -0
- package/dist/vue-hooks/dom/useAppendToBody.js +31 -0
- package/dist/vue-hooks/dom/useAppendToBody.js.map +1 -0
- package/dist/vue-hooks/dom/useDraggable.d.ts +8 -3
- package/dist/vue-hooks/dom/useDraggable.js +57 -19
- package/dist/vue-hooks/dom/useDraggable.js.map +1 -1
- package/package.json +11 -1
- package/references/dom.d.ts +8 -3
- package/types/im-api.d.ts +26 -2
- package/types/im-chat.d.ts +42 -1
- package/types/im-message-display.d.ts +89 -0
- package/types/uniapp-android-build.d.ts +31 -0
- package/types/uniapp-ios-build.d.ts +26 -0
- package/types/user.d.ts +2 -1
- package/dist/functions/async/sleep.d.ts +0 -5
- package/dist/functions/async/sleep.js +0 -6
- package/dist/functions/async/sleep.js.map +0 -1
- package/dist/functions/async/timeout.d.ts +0 -6
- package/dist/functions/async/timeout.js +0 -12
- package/dist/functions/async/timeout.js.map +0 -1
- package/dist/functions/browser/computePosition.d.ts +0 -6
- package/dist/functions/browser/computePosition.js +0 -49
- package/dist/functions/browser/computePosition.js.map +0 -1
- package/dist/functions/browser/createSharedKeyboardCenter.d.ts +0 -18
- package/dist/functions/browser/createSharedKeyboardCenter.js +0 -58
- package/dist/functions/browser/createSharedKeyboardCenter.js.map +0 -1
- package/dist/functions/browser/createThrottledEventListener.d.ts +0 -11
- package/dist/functions/browser/createThrottledEventListener.js +0 -51
- package/dist/functions/browser/createThrottledEventListener.js.map +0 -1
- package/dist/functions/browser/demonstrateResourceLoading.d.ts +0 -32
- package/dist/functions/browser/demonstrateResourceLoading.js +0 -169
- package/dist/functions/browser/demonstrateResourceLoading.js.map +0 -1
- package/dist/functions/browser/detectOverflow.d.ts +0 -12
- package/dist/functions/browser/detectOverflow.js +0 -17
- package/dist/functions/browser/detectOverflow.js.map +0 -1
- package/dist/functions/browser/getAlignment.d.ts +0 -2
- package/dist/functions/browser/getAlignment.js +0 -5
- package/dist/functions/browser/getAlignment.js.map +0 -1
- package/dist/functions/browser/getBasePlacement.d.ts +0 -2
- package/dist/functions/browser/getBasePlacement.js +0 -4
- package/dist/functions/browser/getBasePlacement.js.map +0 -1
- package/dist/functions/browser/getCrossAxisFlip.d.ts +0 -2
- package/dist/functions/browser/getCrossAxisFlip.js +0 -11
- package/dist/functions/browser/getCrossAxisFlip.js.map +0 -1
- package/dist/functions/browser/getElementRect.d.ts +0 -3
- package/dist/functions/browser/getElementRect.js +0 -14
- package/dist/functions/browser/getElementRect.js.map +0 -1
- package/dist/functions/browser/getFlipPlacements.d.ts +0 -2
- package/dist/functions/browser/getFlipPlacements.js +0 -13
- package/dist/functions/browser/getFlipPlacements.js.map +0 -1
- package/dist/functions/browser/getMainAxisFlip.d.ts +0 -2
- package/dist/functions/browser/getMainAxisFlip.js +0 -17
- package/dist/functions/browser/getMainAxisFlip.js.map +0 -1
- package/dist/functions/browser/getRelativePosition.d.ts +0 -3
- package/dist/functions/browser/getRelativePosition.js +0 -14
- package/dist/functions/browser/getRelativePosition.js.map +0 -1
- package/dist/functions/browser/getViewportRect.d.ts +0 -7
- package/dist/functions/browser/getViewportRect.js +0 -15
- package/dist/functions/browser/getViewportRect.js.map +0 -1
- package/dist/functions/browser/isValidPlacement.d.ts +0 -2
- package/dist/functions/browser/isValidPlacement.js +0 -16
- package/dist/functions/browser/isValidPlacement.js.map +0 -1
- package/dist/functions/browser/pickFile.d.ts +0 -15
- package/dist/functions/browser/pickFile.js +0 -48
- package/dist/functions/browser/pickFile.js.map +0 -1
- package/dist/functions/build/generateExports.d.ts +0 -26
- package/dist/functions/build/generateExports.js +0 -34
- package/dist/functions/build/generateExports.js.map +0 -1
- package/dist/functions/core/diff/diff.d.ts +0 -25
- package/dist/functions/core/diff/diff.js +0 -316
- package/dist/functions/core/diff/diff.js.map +0 -1
- package/dist/functions/core/diff/vueDiff.d.ts +0 -38
- package/dist/functions/core/diff/vueDiff.js +0 -333
- package/dist/functions/core/diff/vueDiff.js.map +0 -1
- package/dist/functions/core/generator/generatorUtils.d.ts +0 -16
- package/dist/functions/core/generator/generatorUtils.js +0 -139
- package/dist/functions/core/generator/generatorUtils.js.map +0 -1
- package/dist/functions/core/type/isType.d.ts +0 -11
- package/dist/functions/core/type/isType.js +0 -30
- package/dist/functions/core/type/isType.js.map +0 -1
- package/dist/functions/data/array-object/chunk.d.ts +0 -1
- package/dist/functions/data/array-object/chunk.js +0 -11
- package/dist/functions/data/array-object/chunk.js.map +0 -1
- package/dist/functions/data/array-object/deepClone.d.ts +0 -12
- package/dist/functions/data/array-object/deepClone.js +0 -131
- package/dist/functions/data/array-object/deepClone.js.map +0 -1
- package/dist/functions/data/array-object/evolve.d.ts +0 -3
- package/dist/functions/data/array-object/evolve.js +0 -15
- package/dist/functions/data/array-object/evolve.js.map +0 -1
- package/dist/functions/data/array-object/flatten.d.ts +0 -7
- package/dist/functions/data/array-object/flatten.js +0 -60
- package/dist/functions/data/array-object/flatten.js.map +0 -1
- package/dist/functions/data/array-object/flattenObject.d.ts +0 -5
- package/dist/functions/data/array-object/flattenObject.js +0 -102
- package/dist/functions/data/array-object/flattenObject.js.map +0 -1
- package/dist/functions/data/array-object/groupBy.d.ts +0 -1
- package/dist/functions/data/array-object/groupBy.js +0 -14
- package/dist/functions/data/array-object/groupBy.js.map +0 -1
- package/dist/functions/data/array-object/omit.d.ts +0 -1
- package/dist/functions/data/array-object/omit.js +0 -8
- package/dist/functions/data/array-object/omit.js.map +0 -1
- package/dist/functions/data/array-object/pick.d.ts +0 -1
- package/dist/functions/data/array-object/pick.js +0 -10
- package/dist/functions/data/array-object/pick.js.map +0 -1
- package/dist/functions/data/array-object/shuffle.d.ts +0 -1
- package/dist/functions/data/array-object/shuffle.js +0 -9
- package/dist/functions/data/array-object/shuffle.js.map +0 -1
- package/dist/functions/data/array-object/sortBy.d.ts +0 -1
- package/dist/functions/data/array-object/sortBy.js +0 -13
- package/dist/functions/data/array-object/sortBy.js.map +0 -1
- package/dist/functions/data/array-object/unique.d.ts +0 -10
- package/dist/functions/data/array-object/unique.js +0 -85
- package/dist/functions/data/array-object/unique.js.map +0 -1
- package/dist/functions/data/date/dateRange.d.ts +0 -1
- package/dist/functions/data/date/dateRange.js +0 -18
- package/dist/functions/data/date/dateRange.js.map +0 -1
- package/dist/functions/data/date/formatDate.d.ts +0 -1
- package/dist/functions/data/date/formatDate.js +0 -21
- package/dist/functions/data/date/formatDate.js.map +0 -1
- package/dist/functions/data/date/timeAgo.d.ts +0 -1
- package/dist/functions/data/date/timeAgo.js +0 -49
- package/dist/functions/data/date/timeAgo.js.map +0 -1
- package/dist/functions/data/number/average.d.ts +0 -1
- package/dist/functions/data/number/average.js +0 -8
- package/dist/functions/data/number/average.js.map +0 -1
- package/dist/functions/data/number/clamp.d.ts +0 -1
- package/dist/functions/data/number/clamp.js +0 -7
- package/dist/functions/data/number/clamp.js.map +0 -1
- package/dist/functions/data/number/formatNumber.d.ts +0 -8
- package/dist/functions/data/number/formatNumber.js +0 -16
- package/dist/functions/data/number/formatNumber.js.map +0 -1
- package/dist/functions/data/number/median.d.ts +0 -1
- package/dist/functions/data/number/median.js +0 -14
- package/dist/functions/data/number/median.js.map +0 -1
- package/dist/functions/data/number/percentile.d.ts +0 -1
- package/dist/functions/data/number/percentile.js +0 -18
- package/dist/functions/data/number/percentile.js.map +0 -1
- package/dist/functions/data/number/random.d.ts +0 -4
- package/dist/functions/data/number/random.js +0 -9
- package/dist/functions/data/number/random.js.map +0 -1
- package/dist/functions/data/number/range.d.ts +0 -1
- package/dist/functions/data/number/range.js +0 -18
- package/dist/functions/data/number/range.js.map +0 -1
- package/dist/functions/data/number/sum.d.ts +0 -1
- package/dist/functions/data/number/sum.js +0 -4
- package/dist/functions/data/number/sum.js.map +0 -1
- package/dist/functions/data/randomRegion.d.ts +0 -24
- package/dist/functions/data/randomRegion.js +0 -74
- package/dist/functions/data/randomRegion.js.map +0 -1
- package/dist/functions/data/string/base64.d.ts +0 -5
- package/dist/functions/data/string/base64.js +0 -6
- package/dist/functions/data/string/base64.js.map +0 -1
- package/dist/functions/data/string/capitalize.d.ts +0 -1
- package/dist/functions/data/string/capitalize.js +0 -6
- package/dist/functions/data/string/capitalize.js.map +0 -1
- package/dist/functions/data/string/caseConverter.d.ts +0 -19
- package/dist/functions/data/string/caseConverter.js +0 -94
- package/dist/functions/data/string/caseConverter.js.map +0 -1
- package/dist/functions/data/string/desensitize.d.ts +0 -13
- package/dist/functions/data/string/desensitize.js +0 -107
- package/dist/functions/data/string/desensitize.js.map +0 -1
- package/dist/functions/data/string/htmlEscape.d.ts +0 -20
- package/dist/functions/data/string/htmlEscape.js +0 -80
- package/dist/functions/data/string/htmlEscape.js.map +0 -1
- package/dist/functions/data/string/levenshtein.d.ts +0 -1
- package/dist/functions/data/string/levenshtein.js +0 -27
- package/dist/functions/data/string/levenshtein.js.map +0 -1
- package/dist/functions/data/string/normalize.d.ts +0 -8
- package/dist/functions/data/string/normalize.js +0 -37
- package/dist/functions/data/string/normalize.js.map +0 -1
- package/dist/functions/data/string/pad.d.ts +0 -13
- package/dist/functions/data/string/pad.js +0 -50
- package/dist/functions/data/string/pad.js.map +0 -1
- package/dist/functions/data/string/palindrome.d.ts +0 -3
- package/dist/functions/data/string/palindrome.js +0 -15
- package/dist/functions/data/string/palindrome.js.map +0 -1
- package/dist/functions/data/string/similarity.d.ts +0 -1
- package/dist/functions/data/string/similarity.js +0 -13
- package/dist/functions/data/string/similarity.js.map +0 -1
- package/dist/functions/data/string/template.d.ts +0 -4
- package/dist/functions/data/string/template.js +0 -21
- package/dist/functions/data/string/template.js.map +0 -1
- package/dist/functions/data/string/testRegex.d.ts +0 -20
- package/dist/functions/data/string/testRegex.js +0 -300
- package/dist/functions/data/string/testRegex.js.map +0 -1
- package/dist/functions/data/string/wordCount.d.ts +0 -5
- package/dist/functions/data/string/wordCount.js +0 -11
- package/dist/functions/data/string/wordCount.js.map +0 -1
- package/dist/functions/data/tree/buildTree.d.ts +0 -7
- package/dist/functions/data/tree/buildTree.js +0 -27
- package/dist/functions/data/tree/buildTree.js.map +0 -1
- package/dist/functions/data/tree/filterTree.d.ts +0 -4
- package/dist/functions/data/tree/filterTree.js +0 -21
- package/dist/functions/data/tree/filterTree.js.map +0 -1
- package/dist/functions/data/tree/findNode.d.ts +0 -4
- package/dist/functions/data/tree/findNode.js +0 -21
- package/dist/functions/data/tree/findNode.js.map +0 -1
- package/dist/functions/data/tree/flattenTree.d.ts +0 -6
- package/dist/functions/data/tree/flattenTree.js +0 -21
- package/dist/functions/data/tree/flattenTree.js.map +0 -1
- package/dist/functions/file/walk.d.ts +0 -18
- package/dist/functions/file/walk.js +0 -58
- package/dist/functions/file/walk.js.map +0 -1
- package/dist/functions/hybrid/detectBridgeEnvironment.d.ts +0 -11
- package/dist/functions/hybrid/detectBridgeEnvironment.js +0 -26
- package/dist/functions/hybrid/detectBridgeEnvironment.js.map +0 -1
- package/dist/functions/integrations/ag-grid/generateLicense.d.ts +0 -7
- package/dist/functions/integrations/ag-grid/generateLicense.js +0 -12
- package/dist/functions/integrations/ag-grid/generateLicense.js.map +0 -1
- package/dist/functions/integrations/uniapp/app-plus/buildAndroidApp.d.ts +0 -30
- package/dist/functions/integrations/uniapp/app-plus/buildAndroidApp.js +0 -884
- package/dist/functions/integrations/uniapp/app-plus/buildAndroidApp.js.map +0 -1
- package/dist/functions/integrations/uniapp/app-plus/buildIOSApp.d.ts +0 -31
- package/dist/functions/integrations/uniapp/app-plus/buildIOSApp.js +0 -900
- package/dist/functions/integrations/uniapp/app-plus/buildIOSApp.js.map +0 -1
- package/dist/functions/integrations/uniapp/build.d.ts +0 -21
- package/dist/functions/integrations/uniapp/build.js +0 -83
- package/dist/functions/integrations/uniapp/build.js.map +0 -1
- package/dist/functions/integrations/uniapp/detectAndroidProjectStructure.d.ts +0 -11
- package/dist/functions/integrations/uniapp/detectAndroidProjectStructure.js +0 -30
- package/dist/functions/integrations/uniapp/detectAndroidProjectStructure.js.map +0 -1
- package/dist/functions/integrations/uniapp/detectProjectType.d.ts +0 -20
- package/dist/functions/integrations/uniapp/detectProjectType.js +0 -68
- package/dist/functions/integrations/uniapp/detectProjectType.js.map +0 -1
- package/dist/functions/integrations/uniapp/parseManifest.d.ts +0 -20
- package/dist/functions/integrations/uniapp/parseManifest.js +0 -51
- package/dist/functions/integrations/uniapp/parseManifest.js.map +0 -1
- package/dist/functions/integrations/uniapp/waitForPages.d.ts +0 -7
- package/dist/functions/integrations/uniapp/waitForPages.js +0 -20
- package/dist/functions/integrations/uniapp/waitForPages.js.map +0 -1
- package/dist/functions/integrations/vue/dynamicMount.d.ts +0 -18
- package/dist/functions/integrations/vue/dynamicMount.js +0 -25
- package/dist/functions/integrations/vue/dynamicMount.js.map +0 -1
- package/dist/functions/integrations/vue/extractColorsFromVueFile.d.ts +0 -3
- package/dist/functions/integrations/vue/extractColorsFromVueFile.js +0 -18
- package/dist/functions/integrations/vue/extractColorsFromVueFile.js.map +0 -1
- package/dist/functions/integrations/vue/extractColorsFromVueSection.d.ts +0 -3
- package/dist/functions/integrations/vue/extractColorsFromVueSection.js +0 -53
- package/dist/functions/integrations/vue/extractColorsFromVueSection.js.map +0 -1
- package/dist/functions/integrations/vue/filterSections.d.ts +0 -2
- package/dist/functions/integrations/vue/filterSections.js +0 -11
- package/dist/functions/integrations/vue/filterSections.js.map +0 -1
- package/dist/functions/integrations/vue/isVNode.d.ts +0 -2
- package/dist/functions/integrations/vue/isVNode.js +0 -6
- package/dist/functions/integrations/vue/isVNode.js.map +0 -1
- package/dist/functions/integrations/vue/isVueComponent.d.ts +0 -2
- package/dist/functions/integrations/vue/isVueComponent.js +0 -6
- package/dist/functions/integrations/vue/isVueComponent.js.map +0 -1
- package/dist/functions/integrations/vue/parseVueFile.d.ts +0 -2
- package/dist/functions/integrations/vue/parseVueFile.js +0 -53
- package/dist/functions/integrations/vue/parseVueFile.js.map +0 -1
- package/dist/functions/integrations/wechat/miniapp/downloadFile.d.ts +0 -6
- package/dist/functions/integrations/wechat/miniapp/downloadFile.js +0 -39
- package/dist/functions/integrations/wechat/miniapp/downloadFile.js.map +0 -1
- package/dist/functions/patterns/MyPromise.d.ts +0 -32
- package/dist/functions/patterns/MyPromise.js +0 -254
- package/dist/functions/patterns/MyPromise.js.map +0 -1
- package/dist/functions/patterns/functionBind.d.ts +0 -4
- package/dist/functions/patterns/functionBind.js +0 -33
- package/dist/functions/patterns/functionBind.js.map +0 -1
- package/dist/functions/patterns/myInstanceof.d.ts +0 -5
- package/dist/functions/patterns/myInstanceof.js +0 -56
- package/dist/functions/patterns/myInstanceof.js.map +0 -1
- package/dist/functions/patterns/myNew.d.ts +0 -3
- package/dist/functions/patterns/myNew.js +0 -19
- package/dist/functions/patterns/myNew.js.map +0 -1
- package/dist/functions/platform/android/buildProject.d.ts +0 -13
- package/dist/functions/platform/android/buildProject.js +0 -122
- package/dist/functions/platform/android/buildProject.js.map +0 -1
- package/dist/functions/platform/android/configureAppIcon.d.ts +0 -17
- package/dist/functions/platform/android/configureAppIcon.js +0 -106
- package/dist/functions/platform/android/configureAppIcon.js.map +0 -1
- package/dist/functions/platform/android/configureLaunchScreen.d.ts +0 -21
- package/dist/functions/platform/android/configureLaunchScreen.js +0 -328
- package/dist/functions/platform/android/configureLaunchScreen.js.map +0 -1
- package/dist/functions/platform/android/detectAndroidModules.d.ts +0 -8
- package/dist/functions/platform/android/detectAndroidModules.js +0 -21
- package/dist/functions/platform/android/detectAndroidModules.js.map +0 -1
- package/dist/functions/platform/android/integrateFacebookLogin.d.ts +0 -12
- package/dist/functions/platform/android/integrateFacebookLogin.js +0 -91
- package/dist/functions/platform/android/integrateFacebookLogin.js.map +0 -1
- package/dist/functions/platform/android/integrateGoogleLogin.d.ts +0 -10
- package/dist/functions/platform/android/integrateGoogleLogin.js +0 -199
- package/dist/functions/platform/android/integrateGoogleLogin.js.map +0 -1
- package/dist/functions/platform/android/integrateMiuiLogin.d.ts +0 -13
- package/dist/functions/platform/android/integrateMiuiLogin.js +0 -115
- package/dist/functions/platform/android/integrateMiuiLogin.js.map +0 -1
- package/dist/functions/platform/android/integrateQQLogin.d.ts +0 -12
- package/dist/functions/platform/android/integrateQQLogin.js +0 -130
- package/dist/functions/platform/android/integrateQQLogin.js.map +0 -1
- package/dist/functions/platform/android/integrateShareTrace.d.ts +0 -10
- package/dist/functions/platform/android/integrateShareTrace.js +0 -181
- package/dist/functions/platform/android/integrateShareTrace.js.map +0 -1
- package/dist/functions/platform/android/integrateSinaLogin.d.ts +0 -13
- package/dist/functions/platform/android/integrateSinaLogin.js +0 -85
- package/dist/functions/platform/android/integrateSinaLogin.js.map +0 -1
- package/dist/functions/platform/android/integrateThirdPartyModule.d.ts +0 -46
- package/dist/functions/platform/android/integrateThirdPartyModule.js +0 -251
- package/dist/functions/platform/android/integrateThirdPartyModule.js.map +0 -1
- package/dist/functions/platform/android/integrateUniAppNativePlugin.d.ts +0 -22
- package/dist/functions/platform/android/integrateUniAppNativePlugin.js +0 -631
- package/dist/functions/platform/android/integrateUniAppNativePlugin.js.map +0 -1
- package/dist/functions/platform/android/integrateUniverifyLogin.d.ts +0 -11
- package/dist/functions/platform/android/integrateUniverifyLogin.js +0 -314
- package/dist/functions/platform/android/integrateUniverifyLogin.js.map +0 -1
- package/dist/functions/platform/android/integrateWechatLogin.d.ts +0 -13
- package/dist/functions/platform/android/integrateWechatLogin.js +0 -154
- package/dist/functions/platform/android/integrateWechatLogin.js.map +0 -1
- package/dist/functions/platform/android/integrateWechatShare.d.ts +0 -13
- package/dist/functions/platform/android/integrateWechatShare.js +0 -154
- package/dist/functions/platform/android/integrateWechatShare.js.map +0 -1
- package/dist/functions/platform/android/modifyGradle.d.ts +0 -28
- package/dist/functions/platform/android/modifyGradle.js +0 -119
- package/dist/functions/platform/android/modifyGradle.js.map +0 -1
- package/dist/functions/platform/android/modifyManifest.d.ts +0 -39
- package/dist/functions/platform/android/modifyManifest.js +0 -225
- package/dist/functions/platform/android/modifyManifest.js.map +0 -1
- package/dist/functions/platform/android/permission.d.ts +0 -54
- package/dist/functions/platform/android/permission.js +0 -85
- package/dist/functions/platform/android/permission.js.map +0 -1
- package/dist/functions/platform/ios/configureAppIcon.d.ts +0 -17
- package/dist/functions/platform/ios/configureAppIcon.js +0 -149
- package/dist/functions/platform/ios/configureAppIcon.js.map +0 -1
- package/dist/functions/platform/ios/configureLaunchScreen.d.ts +0 -17
- package/dist/functions/platform/ios/configureLaunchScreen.js +0 -150
- package/dist/functions/platform/ios/configureLaunchScreen.js.map +0 -1
- package/dist/functions/platform/ios/configurePermissions.d.ts +0 -19
- package/dist/functions/platform/ios/configurePermissions.js +0 -120
- package/dist/functions/platform/ios/configurePermissions.js.map +0 -1
- package/dist/functions/platform/ios/integrateNativePlugin.d.ts +0 -35
- package/dist/functions/platform/ios/integrateNativePlugin.js +0 -994
- package/dist/functions/platform/ios/integrateNativePlugin.js.map +0 -1
- package/dist/functions/platform/ios/integrateQQShare.d.ts +0 -14
- package/dist/functions/platform/ios/integrateQQShare.js +0 -132
- package/dist/functions/platform/ios/integrateQQShare.js.map +0 -1
- package/dist/functions/platform/ios/integrateSinaShare.d.ts +0 -16
- package/dist/functions/platform/ios/integrateSinaShare.js +0 -108
- package/dist/functions/platform/ios/integrateSinaShare.js.map +0 -1
- package/dist/functions/platform/ios/integrateThirdPartyModule.d.ts +0 -62
- package/dist/functions/platform/ios/integrateThirdPartyModule.js +0 -883
- package/dist/functions/platform/ios/integrateThirdPartyModule.js.map +0 -1
- package/dist/functions/platform/ios/integrateWechatOauth.d.ts +0 -14
- package/dist/functions/platform/ios/integrateWechatOauth.js +0 -107
- package/dist/functions/platform/ios/integrateWechatOauth.js.map +0 -1
- package/dist/functions/platform/ios/integrateWechatShare.d.ts +0 -14
- package/dist/functions/platform/ios/integrateWechatShare.js +0 -101
- package/dist/functions/platform/ios/integrateWechatShare.js.map +0 -1
- package/dist/functions/platform/ios/modifyInfoPlistKeyValue.d.ts +0 -2
- package/dist/functions/platform/ios/modifyInfoPlistKeyValue.js +0 -45
- package/dist/functions/platform/ios/modifyInfoPlistKeyValue.js.map +0 -1
- package/dist/functions/platform/ios/safelyModifyProjectPbxproj.d.ts +0 -16
- package/dist/functions/platform/ios/safelyModifyProjectPbxproj.js +0 -136
- package/dist/functions/platform/ios/safelyModifyProjectPbxproj.js.map +0 -1
- package/dist/functions/platform/ios/useAltool.d.ts +0 -39
- package/dist/functions/platform/ios/useAltool.js +0 -350
- package/dist/functions/platform/ios/useAltool.js.map +0 -1
- package/dist/functions/style/buildTokens.d.ts +0 -76
- package/dist/functions/style/buildTokens.js +0 -183
- package/dist/functions/style/buildTokens.js.map +0 -1
- package/dist/functions/style/extractCssVariables.d.ts +0 -16
- package/dist/functions/style/extractCssVariables.js +0 -256
- package/dist/functions/style/extractCssVariables.js.map +0 -1
- package/dist/functions/style/generateVariables.d.ts +0 -7
- package/dist/functions/style/generateVariables.js +0 -135
- package/dist/functions/style/generateVariables.js.map +0 -1
- package/dist/functions/style/mixColors.d.ts +0 -1
- package/dist/functions/style/mixColors.js +0 -38
- package/dist/functions/style/mixColors.js.map +0 -1
- package/dist/functions/style/parseDesignTokens.d.ts +0 -10
- package/dist/functions/style/parseDesignTokens.js +0 -216
- package/dist/functions/style/parseDesignTokens.js.map +0 -1
- package/dist/functions/uniapp/app-plus/buildAndroidPlugin.d.ts +0 -3
- package/dist/functions/uniapp/app-plus/buildAndroidPlugin.js +0 -509
- package/dist/functions/uniapp/app-plus/buildAndroidPlugin.js.map +0 -1
- package/dist/functions/uniapp/app-plus/buildIOSPlugin.d.ts +0 -3
- package/dist/functions/uniapp/app-plus/buildIOSPlugin.js +0 -406
- package/dist/functions/uniapp/app-plus/buildIOSPlugin.js.map +0 -1
- package/dist/functions/validation/parseJwtPayload.d.ts +0 -7
- package/dist/functions/validation/parseJwtPayload.js +0 -33
- package/dist/functions/validation/parseJwtPayload.js.map +0 -1
- package/dist/functions/validation/validate.d.ts +0 -11
- package/dist/functions/validation/validate.js +0 -44
- package/dist/functions/validation/validate.js.map +0 -1
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const VideoCategorySchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
sort_order: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
id: string;
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
sort_order?: number | undefined;
|
|
13
|
+
created_at?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
name: string;
|
|
16
|
+
id: string;
|
|
17
|
+
description?: string | undefined;
|
|
18
|
+
sort_order?: number | undefined;
|
|
19
|
+
created_at?: string | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const VideoSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodNumber;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25
|
+
cover_url: z.ZodOptional<z.ZodString>;
|
|
26
|
+
video_url: z.ZodOptional<z.ZodString>;
|
|
27
|
+
author: z.ZodOptional<z.ZodString>;
|
|
28
|
+
category_id: z.ZodOptional<z.ZodString>;
|
|
29
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
views: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
like_count: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
comment_count: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
share_count: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
status: z.ZodOptional<z.ZodString>;
|
|
35
|
+
publish_time: z.ZodOptional<z.ZodString>;
|
|
36
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
37
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
id: number;
|
|
40
|
+
title: string;
|
|
41
|
+
status?: string | undefined;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
created_at?: string | undefined;
|
|
44
|
+
cover_url?: string | undefined;
|
|
45
|
+
video_url?: string | undefined;
|
|
46
|
+
author?: string | undefined;
|
|
47
|
+
category_id?: string | undefined;
|
|
48
|
+
duration?: number | undefined;
|
|
49
|
+
views?: number | undefined;
|
|
50
|
+
like_count?: number | undefined;
|
|
51
|
+
comment_count?: number | undefined;
|
|
52
|
+
share_count?: number | undefined;
|
|
53
|
+
publish_time?: string | undefined;
|
|
54
|
+
updated_at?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
id: number;
|
|
57
|
+
title: string;
|
|
58
|
+
status?: string | undefined;
|
|
59
|
+
description?: string | undefined;
|
|
60
|
+
created_at?: string | undefined;
|
|
61
|
+
cover_url?: string | undefined;
|
|
62
|
+
video_url?: string | undefined;
|
|
63
|
+
author?: string | undefined;
|
|
64
|
+
category_id?: string | undefined;
|
|
65
|
+
duration?: number | undefined;
|
|
66
|
+
views?: number | undefined;
|
|
67
|
+
like_count?: number | undefined;
|
|
68
|
+
comment_count?: number | undefined;
|
|
69
|
+
share_count?: number | undefined;
|
|
70
|
+
publish_time?: string | undefined;
|
|
71
|
+
updated_at?: string | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
export declare const VideoListResponseSchema: z.ZodObject<{
|
|
74
|
+
data: z.ZodArray<z.ZodObject<{
|
|
75
|
+
id: z.ZodNumber;
|
|
76
|
+
title: z.ZodString;
|
|
77
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
|
+
cover_url: z.ZodOptional<z.ZodString>;
|
|
79
|
+
video_url: z.ZodOptional<z.ZodString>;
|
|
80
|
+
author: z.ZodOptional<z.ZodString>;
|
|
81
|
+
category_id: z.ZodOptional<z.ZodString>;
|
|
82
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
views: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
like_count: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
comment_count: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
share_count: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
status: z.ZodOptional<z.ZodString>;
|
|
88
|
+
publish_time: z.ZodOptional<z.ZodString>;
|
|
89
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
90
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
id: number;
|
|
93
|
+
title: string;
|
|
94
|
+
status?: string | undefined;
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
created_at?: string | undefined;
|
|
97
|
+
cover_url?: string | undefined;
|
|
98
|
+
video_url?: string | undefined;
|
|
99
|
+
author?: string | undefined;
|
|
100
|
+
category_id?: string | undefined;
|
|
101
|
+
duration?: number | undefined;
|
|
102
|
+
views?: number | undefined;
|
|
103
|
+
like_count?: number | undefined;
|
|
104
|
+
comment_count?: number | undefined;
|
|
105
|
+
share_count?: number | undefined;
|
|
106
|
+
publish_time?: string | undefined;
|
|
107
|
+
updated_at?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
id: number;
|
|
110
|
+
title: string;
|
|
111
|
+
status?: string | undefined;
|
|
112
|
+
description?: string | undefined;
|
|
113
|
+
created_at?: string | undefined;
|
|
114
|
+
cover_url?: string | undefined;
|
|
115
|
+
video_url?: string | undefined;
|
|
116
|
+
author?: string | undefined;
|
|
117
|
+
category_id?: string | undefined;
|
|
118
|
+
duration?: number | undefined;
|
|
119
|
+
views?: number | undefined;
|
|
120
|
+
like_count?: number | undefined;
|
|
121
|
+
comment_count?: number | undefined;
|
|
122
|
+
share_count?: number | undefined;
|
|
123
|
+
publish_time?: string | undefined;
|
|
124
|
+
updated_at?: string | undefined;
|
|
125
|
+
}>, "many">;
|
|
126
|
+
total: z.ZodNumber;
|
|
127
|
+
limit: z.ZodNumber;
|
|
128
|
+
offset: z.ZodNumber;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
data: {
|
|
131
|
+
id: number;
|
|
132
|
+
title: string;
|
|
133
|
+
status?: string | undefined;
|
|
134
|
+
description?: string | undefined;
|
|
135
|
+
created_at?: string | undefined;
|
|
136
|
+
cover_url?: string | undefined;
|
|
137
|
+
video_url?: string | undefined;
|
|
138
|
+
author?: string | undefined;
|
|
139
|
+
category_id?: string | undefined;
|
|
140
|
+
duration?: number | undefined;
|
|
141
|
+
views?: number | undefined;
|
|
142
|
+
like_count?: number | undefined;
|
|
143
|
+
comment_count?: number | undefined;
|
|
144
|
+
share_count?: number | undefined;
|
|
145
|
+
publish_time?: string | undefined;
|
|
146
|
+
updated_at?: string | undefined;
|
|
147
|
+
}[];
|
|
148
|
+
limit: number;
|
|
149
|
+
offset: number;
|
|
150
|
+
total: number;
|
|
151
|
+
}, {
|
|
152
|
+
data: {
|
|
153
|
+
id: number;
|
|
154
|
+
title: string;
|
|
155
|
+
status?: string | undefined;
|
|
156
|
+
description?: string | undefined;
|
|
157
|
+
created_at?: string | undefined;
|
|
158
|
+
cover_url?: string | undefined;
|
|
159
|
+
video_url?: string | undefined;
|
|
160
|
+
author?: string | undefined;
|
|
161
|
+
category_id?: string | undefined;
|
|
162
|
+
duration?: number | undefined;
|
|
163
|
+
views?: number | undefined;
|
|
164
|
+
like_count?: number | undefined;
|
|
165
|
+
comment_count?: number | undefined;
|
|
166
|
+
share_count?: number | undefined;
|
|
167
|
+
publish_time?: string | undefined;
|
|
168
|
+
updated_at?: string | undefined;
|
|
169
|
+
}[];
|
|
170
|
+
limit: number;
|
|
171
|
+
offset: number;
|
|
172
|
+
total: number;
|
|
173
|
+
}>;
|
|
174
|
+
export declare const VideoDetailResponseSchema: z.ZodObject<{
|
|
175
|
+
data: z.ZodObject<{
|
|
176
|
+
id: z.ZodNumber;
|
|
177
|
+
title: z.ZodString;
|
|
178
|
+
description: z.ZodOptional<z.ZodString>;
|
|
179
|
+
cover_url: z.ZodOptional<z.ZodString>;
|
|
180
|
+
video_url: z.ZodOptional<z.ZodString>;
|
|
181
|
+
author: z.ZodOptional<z.ZodString>;
|
|
182
|
+
category_id: z.ZodOptional<z.ZodString>;
|
|
183
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
views: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
like_count: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
comment_count: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
share_count: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
status: z.ZodOptional<z.ZodString>;
|
|
189
|
+
publish_time: z.ZodOptional<z.ZodString>;
|
|
190
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
191
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
id: number;
|
|
194
|
+
title: string;
|
|
195
|
+
status?: string | undefined;
|
|
196
|
+
description?: string | undefined;
|
|
197
|
+
created_at?: string | undefined;
|
|
198
|
+
cover_url?: string | undefined;
|
|
199
|
+
video_url?: string | undefined;
|
|
200
|
+
author?: string | undefined;
|
|
201
|
+
category_id?: string | undefined;
|
|
202
|
+
duration?: number | undefined;
|
|
203
|
+
views?: number | undefined;
|
|
204
|
+
like_count?: number | undefined;
|
|
205
|
+
comment_count?: number | undefined;
|
|
206
|
+
share_count?: number | undefined;
|
|
207
|
+
publish_time?: string | undefined;
|
|
208
|
+
updated_at?: string | undefined;
|
|
209
|
+
}, {
|
|
210
|
+
id: number;
|
|
211
|
+
title: string;
|
|
212
|
+
status?: string | undefined;
|
|
213
|
+
description?: string | undefined;
|
|
214
|
+
created_at?: string | undefined;
|
|
215
|
+
cover_url?: string | undefined;
|
|
216
|
+
video_url?: string | undefined;
|
|
217
|
+
author?: string | undefined;
|
|
218
|
+
category_id?: string | undefined;
|
|
219
|
+
duration?: number | undefined;
|
|
220
|
+
views?: number | undefined;
|
|
221
|
+
like_count?: number | undefined;
|
|
222
|
+
comment_count?: number | undefined;
|
|
223
|
+
share_count?: number | undefined;
|
|
224
|
+
publish_time?: string | undefined;
|
|
225
|
+
updated_at?: string | undefined;
|
|
226
|
+
}>;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
data: {
|
|
229
|
+
id: number;
|
|
230
|
+
title: string;
|
|
231
|
+
status?: string | undefined;
|
|
232
|
+
description?: string | undefined;
|
|
233
|
+
created_at?: string | undefined;
|
|
234
|
+
cover_url?: string | undefined;
|
|
235
|
+
video_url?: string | undefined;
|
|
236
|
+
author?: string | undefined;
|
|
237
|
+
category_id?: string | undefined;
|
|
238
|
+
duration?: number | undefined;
|
|
239
|
+
views?: number | undefined;
|
|
240
|
+
like_count?: number | undefined;
|
|
241
|
+
comment_count?: number | undefined;
|
|
242
|
+
share_count?: number | undefined;
|
|
243
|
+
publish_time?: string | undefined;
|
|
244
|
+
updated_at?: string | undefined;
|
|
245
|
+
};
|
|
246
|
+
}, {
|
|
247
|
+
data: {
|
|
248
|
+
id: number;
|
|
249
|
+
title: string;
|
|
250
|
+
status?: string | undefined;
|
|
251
|
+
description?: string | undefined;
|
|
252
|
+
created_at?: string | undefined;
|
|
253
|
+
cover_url?: string | undefined;
|
|
254
|
+
video_url?: string | undefined;
|
|
255
|
+
author?: string | undefined;
|
|
256
|
+
category_id?: string | undefined;
|
|
257
|
+
duration?: number | undefined;
|
|
258
|
+
views?: number | undefined;
|
|
259
|
+
like_count?: number | undefined;
|
|
260
|
+
comment_count?: number | undefined;
|
|
261
|
+
share_count?: number | undefined;
|
|
262
|
+
publish_time?: string | undefined;
|
|
263
|
+
updated_at?: string | undefined;
|
|
264
|
+
};
|
|
265
|
+
}>;
|
|
266
|
+
export declare const VideoCategoriesResponseSchema: z.ZodObject<{
|
|
267
|
+
data: z.ZodArray<z.ZodObject<{
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
name: z.ZodString;
|
|
270
|
+
description: z.ZodOptional<z.ZodString>;
|
|
271
|
+
sort_order: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
name: string;
|
|
275
|
+
id: string;
|
|
276
|
+
description?: string | undefined;
|
|
277
|
+
sort_order?: number | undefined;
|
|
278
|
+
created_at?: string | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
name: string;
|
|
281
|
+
id: string;
|
|
282
|
+
description?: string | undefined;
|
|
283
|
+
sort_order?: number | undefined;
|
|
284
|
+
created_at?: string | undefined;
|
|
285
|
+
}>, "many">;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
data: {
|
|
288
|
+
name: string;
|
|
289
|
+
id: string;
|
|
290
|
+
description?: string | undefined;
|
|
291
|
+
sort_order?: number | undefined;
|
|
292
|
+
created_at?: string | undefined;
|
|
293
|
+
}[];
|
|
294
|
+
}, {
|
|
295
|
+
data: {
|
|
296
|
+
name: string;
|
|
297
|
+
id: string;
|
|
298
|
+
description?: string | undefined;
|
|
299
|
+
sort_order?: number | undefined;
|
|
300
|
+
created_at?: string | undefined;
|
|
301
|
+
}[];
|
|
302
|
+
}>;
|
|
303
|
+
export declare const VideoCommentSchema: z.ZodObject<{
|
|
304
|
+
id: z.ZodNumber;
|
|
305
|
+
video_id: z.ZodNumber;
|
|
306
|
+
user_id: z.ZodString;
|
|
307
|
+
content: z.ZodString;
|
|
308
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
309
|
+
like_count: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
311
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
|
313
|
+
id: number;
|
|
314
|
+
video_id: number;
|
|
315
|
+
user_id: string;
|
|
316
|
+
content: string;
|
|
317
|
+
created_at?: string | undefined;
|
|
318
|
+
like_count?: number | undefined;
|
|
319
|
+
updated_at?: string | undefined;
|
|
320
|
+
parent_id?: number | null | undefined;
|
|
321
|
+
}, {
|
|
322
|
+
id: number;
|
|
323
|
+
video_id: number;
|
|
324
|
+
user_id: string;
|
|
325
|
+
content: string;
|
|
326
|
+
created_at?: string | undefined;
|
|
327
|
+
like_count?: number | undefined;
|
|
328
|
+
updated_at?: string | undefined;
|
|
329
|
+
parent_id?: number | null | undefined;
|
|
330
|
+
}>;
|
|
331
|
+
export declare const VideoCommentsResponseSchema: z.ZodObject<{
|
|
332
|
+
data: z.ZodArray<z.ZodObject<{
|
|
333
|
+
id: z.ZodNumber;
|
|
334
|
+
video_id: z.ZodNumber;
|
|
335
|
+
user_id: z.ZodString;
|
|
336
|
+
content: z.ZodString;
|
|
337
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
338
|
+
like_count: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
340
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
id: number;
|
|
343
|
+
video_id: number;
|
|
344
|
+
user_id: string;
|
|
345
|
+
content: string;
|
|
346
|
+
created_at?: string | undefined;
|
|
347
|
+
like_count?: number | undefined;
|
|
348
|
+
updated_at?: string | undefined;
|
|
349
|
+
parent_id?: number | null | undefined;
|
|
350
|
+
}, {
|
|
351
|
+
id: number;
|
|
352
|
+
video_id: number;
|
|
353
|
+
user_id: string;
|
|
354
|
+
content: string;
|
|
355
|
+
created_at?: string | undefined;
|
|
356
|
+
like_count?: number | undefined;
|
|
357
|
+
updated_at?: string | undefined;
|
|
358
|
+
parent_id?: number | null | undefined;
|
|
359
|
+
}>, "many">;
|
|
360
|
+
total: z.ZodNumber;
|
|
361
|
+
limit: z.ZodNumber;
|
|
362
|
+
offset: z.ZodNumber;
|
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
|
364
|
+
data: {
|
|
365
|
+
id: number;
|
|
366
|
+
video_id: number;
|
|
367
|
+
user_id: string;
|
|
368
|
+
content: string;
|
|
369
|
+
created_at?: string | undefined;
|
|
370
|
+
like_count?: number | undefined;
|
|
371
|
+
updated_at?: string | undefined;
|
|
372
|
+
parent_id?: number | null | undefined;
|
|
373
|
+
}[];
|
|
374
|
+
limit: number;
|
|
375
|
+
offset: number;
|
|
376
|
+
total: number;
|
|
377
|
+
}, {
|
|
378
|
+
data: {
|
|
379
|
+
id: number;
|
|
380
|
+
video_id: number;
|
|
381
|
+
user_id: string;
|
|
382
|
+
content: string;
|
|
383
|
+
created_at?: string | undefined;
|
|
384
|
+
like_count?: number | undefined;
|
|
385
|
+
updated_at?: string | undefined;
|
|
386
|
+
parent_id?: number | null | undefined;
|
|
387
|
+
}[];
|
|
388
|
+
limit: number;
|
|
389
|
+
offset: number;
|
|
390
|
+
total: number;
|
|
391
|
+
}>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const VideoCategorySchema = z.object({
|
|
3
|
+
id: z.string(),
|
|
4
|
+
name: z.string(),
|
|
5
|
+
description: z.string().optional(),
|
|
6
|
+
sort_order: z.number().optional(),
|
|
7
|
+
created_at: z.string().optional(),
|
|
8
|
+
});
|
|
9
|
+
export const VideoSchema = z.object({
|
|
10
|
+
id: z.number(),
|
|
11
|
+
title: z.string(),
|
|
12
|
+
description: z.string().optional(),
|
|
13
|
+
cover_url: z.string().optional(),
|
|
14
|
+
video_url: z.string().optional(),
|
|
15
|
+
author: z.string().optional(),
|
|
16
|
+
category_id: z.string().optional(),
|
|
17
|
+
duration: z.number().optional(),
|
|
18
|
+
views: z.number().optional(),
|
|
19
|
+
like_count: z.number().optional(),
|
|
20
|
+
comment_count: z.number().optional(),
|
|
21
|
+
share_count: z.number().optional(),
|
|
22
|
+
status: z.string().optional(),
|
|
23
|
+
publish_time: z.string().optional(),
|
|
24
|
+
created_at: z.string().optional(),
|
|
25
|
+
updated_at: z.string().optional(),
|
|
26
|
+
});
|
|
27
|
+
export const VideoListResponseSchema = z.object({
|
|
28
|
+
data: z.array(VideoSchema),
|
|
29
|
+
total: z.number(),
|
|
30
|
+
limit: z.number(),
|
|
31
|
+
offset: z.number(),
|
|
32
|
+
});
|
|
33
|
+
export const VideoDetailResponseSchema = z.object({
|
|
34
|
+
data: VideoSchema,
|
|
35
|
+
});
|
|
36
|
+
export const VideoCategoriesResponseSchema = z.object({
|
|
37
|
+
data: z.array(VideoCategorySchema),
|
|
38
|
+
});
|
|
39
|
+
export const VideoCommentSchema = z.object({
|
|
40
|
+
id: z.number(),
|
|
41
|
+
video_id: z.number(),
|
|
42
|
+
user_id: z.string(),
|
|
43
|
+
content: z.string(),
|
|
44
|
+
parent_id: z.number().nullable().optional(),
|
|
45
|
+
like_count: z.number().optional(),
|
|
46
|
+
created_at: z.string().optional(),
|
|
47
|
+
updated_at: z.string().optional(),
|
|
48
|
+
});
|
|
49
|
+
export const VideoCommentsResponseSchema = z.object({
|
|
50
|
+
data: z.array(VideoCommentSchema),
|
|
51
|
+
total: z.number(),
|
|
52
|
+
limit: z.number(),
|
|
53
|
+
offset: z.number(),
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=video.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video.schema.js","sourceRoot":"","sources":["../../../../src/functions/api/schemas/video.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { VideoCategory, Video, VideoComment, VideoListResponse, VideoDetailResponse, VideoCategoriesResponse, VideoCommentsResponse, CreateVideoPayload, UpdateVideoPayload, CreateCommentPayload } from '../../../types/video';
|
|
2
|
+
import type { FetchFunction } from '../../../references/fetch.d';
|
|
3
|
+
import type { URLSearchParams } from '../../../references/url.d';
|
|
4
|
+
import type { Console } from '../../../references/console.d';
|
|
5
|
+
export interface VideoApiClientOptions {
|
|
6
|
+
baseUrl: string;
|
|
7
|
+
getToken?: () => string | undefined | Promise<string | undefined>;
|
|
8
|
+
fetch: FetchFunction;
|
|
9
|
+
console?: Console;
|
|
10
|
+
URLSearchParams?: typeof URLSearchParams;
|
|
11
|
+
}
|
|
12
|
+
export declare function createVideoApiClient(options: VideoApiClientOptions): {
|
|
13
|
+
getCategories(): Promise<VideoCategoriesResponse>;
|
|
14
|
+
createCategory(payload: VideoCategory): Promise<{
|
|
15
|
+
data: VideoCategory;
|
|
16
|
+
}>;
|
|
17
|
+
updateCategory(id: string, payload: Partial<VideoCategory>): Promise<{
|
|
18
|
+
data: VideoCategory;
|
|
19
|
+
}>;
|
|
20
|
+
deleteCategory(id: string): Promise<{
|
|
21
|
+
message: string;
|
|
22
|
+
}>;
|
|
23
|
+
getVideos(params: {
|
|
24
|
+
limit?: number;
|
|
25
|
+
offset?: number;
|
|
26
|
+
categoryId?: string;
|
|
27
|
+
search?: string;
|
|
28
|
+
}): Promise<VideoListResponse>;
|
|
29
|
+
getVideo(id: number): Promise<VideoDetailResponse>;
|
|
30
|
+
getRecommendVideos(id: number, limit?: number): Promise<{
|
|
31
|
+
data: Video[];
|
|
32
|
+
}>;
|
|
33
|
+
createVideo(payload: CreateVideoPayload): Promise<{
|
|
34
|
+
data: Video;
|
|
35
|
+
message: string;
|
|
36
|
+
}>;
|
|
37
|
+
updateVideo(id: number, payload: UpdateVideoPayload): Promise<{
|
|
38
|
+
data: Video;
|
|
39
|
+
message: string;
|
|
40
|
+
}>;
|
|
41
|
+
deleteVideo(id: number): Promise<{
|
|
42
|
+
message: string;
|
|
43
|
+
}>;
|
|
44
|
+
toggleLike(id: number): Promise<{
|
|
45
|
+
data: Video;
|
|
46
|
+
isLiked: boolean;
|
|
47
|
+
message: string;
|
|
48
|
+
}>;
|
|
49
|
+
checkLike(id: number): Promise<{
|
|
50
|
+
data: {
|
|
51
|
+
isLiked: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
getComments(id: number, params?: {
|
|
55
|
+
limit?: number;
|
|
56
|
+
offset?: number;
|
|
57
|
+
}): Promise<VideoCommentsResponse>;
|
|
58
|
+
createComment(id: number, payload: CreateCommentPayload): Promise<{
|
|
59
|
+
data: VideoComment;
|
|
60
|
+
message: string;
|
|
61
|
+
}>;
|
|
62
|
+
};
|