@unsource/ui 2.3.0 → 2.3.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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.3.0",
4
+ "version": "2.3.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,4 +1,4 @@
1
- import type { Form, InputOption, Section, Profile, Transaction, Slider, User, Banner, WithdrawRequest, Coin } from '../types/models.js';
1
+ import type { Form, InputOption, Section, Profile, Transaction, Slider, User, Banner, Coin } from '../types/models.js';
2
2
  export declare const getForms: (name: string) => Promise<Form[] | undefined>;
3
3
  export declare const getUserInfo: () => Promise<User | null>;
4
4
  export declare const getCoin: (id?: string | null) => Promise<Coin | undefined>;
@@ -8,10 +8,10 @@ export declare const getCategorySection: (data: Slider) => Promise<InputOption[]
8
8
  export declare const getOption: (key: string, params?: {}) => Promise<InputOption | null>;
9
9
  export declare const getOptions: (key: string) => Promise<InputOption[]>;
10
10
  export declare const getTransactions: (walletIds: string[], justWallet?: boolean) => Promise<Transaction[] | undefined>;
11
- export declare const saveUser: (user: User) => Promise<any>;
12
- export declare const saveProfile: (profile: Profile) => Promise<any>;
13
- export declare const saveWithdraw: (withdraw: WithdrawRequest) => Promise<any>;
14
- export declare const cancelRequest: (request: WithdrawRequest) => Promise<any>;
11
+ export declare const saveUser: (user: User) => Promise<Profile | undefined>;
12
+ export declare const saveProfile: (profile: Profile) => Promise<Profile | undefined>;
13
+ export declare const saveWithdraw: (withdraw: any) => Promise<unknown>;
14
+ export declare const cancelRequest: (request: any) => Promise<{} | null>;
15
15
  export declare const verifyPayment: (txId?: string) => Promise<{
16
16
  trx: Transaction;
17
17
  status: boolean;
@@ -1,8 +1,9 @@
1
- import { useGet } from "../composables/fetch.js";
1
+ import { useGet, usePost, usePut } from "../composables/fetch.js";
2
2
  import {
3
3
  useUser,
4
4
  useUserId
5
5
  } from "./reuseable.js";
6
+ import { _set, useNuxtApp, useRoute } from "#imports";
6
7
  export const getForms = async (name) => {
7
8
  const { result } = await useGet("/Form", {
8
9
  params: {
@@ -175,7 +176,6 @@ export const verifyPayment = async (txId = "") => {
175
176
  };
176
177
  export const submitInviteCode = async (code) => {
177
178
  if (!code) return;
178
- const inviteCode = useCookie("inviteCode");
179
179
  const { $toast } = useNuxtApp();
180
180
  const { result: supervisor } = await useGet(`/user/inviteCode/${code}`);
181
181
  if (supervisor?.id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",